[TASK] Cleanup extension configuration files 88/51188/2
authorStanislas Rolland <typo3@sjbr.ca>
Sun, 8 Jan 2017 05:06:11 +0000 (00:06 -0500)
committerStanislas Rolland <typo3@sjbr.ca>
Sun, 8 Jan 2017 05:07:49 +0000 (06:07 +0100)
Change-Id: I9fe6405b65a5409ae4283bc9226d429c1d81e291
Reviewed-on: https://review.typo3.org/51188
Reviewed-by: Stanislas Rolland <typo3@sjbr.ca>
Tested-by: Stanislas Rolland <typo3@sjbr.ca>
ChangeLog
Resources/Public/Icons/Extension.svg [new file with mode: 0644]
ext_localconf.php
ext_tables.php

index ca39e3b..2247582 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2017-01-07  Stanislas Rolland  <typo3(arobas)sjbr.ca>\r
+\r
+       * Cleanup extension configuration files\r
+\r
 2017-01-06  Stanislas Rolland  <typo3(arobas)sjbr.ca>\r
 \r
        * Resolves #79187: Use TYPO3 8 DB API\r
diff --git a/Resources/Public/Icons/Extension.svg b/Resources/Public/Icons/Extension.svg
new file mode 100644 (file)
index 0000000..f1f6f41
--- /dev/null
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   id="svg2652"
+   width="213"
+   height="213"
+   version="1.0">
+  <rect
+     style="fill:#c45677;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:2.32536936;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0"
+     id="rect2681"
+     width="210.79147"
+     height="210.79147"
+     x="0.89320815"
+     y="1.2462087"
+     rx="53.576298" />
+  <rect
+     style="fill:#c45677;fill-opacity:0.34117647;stroke:#ffffff;stroke-width:8.92397499;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+     id="rect4893"
+     width="105.62956"
+     height="104.32529"
+     x="52.139805"
+     y="55.393627"
+     rx="0" />
+  <rect
+     style="fill:#ffffff;fill-opacity:1;stroke:#ffffff;stroke-width:8.73866844;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+     id="rect4897"
+     width="45.13784"
+     height="45.13784"
+     x="82.199577"
+     y="107.29568" />
+</svg>
\ No newline at end of file
index 8f45908..ae8a233 100644 (file)
@@ -4,17 +4,16 @@ defined('TYPO3_MODE') or die();
 // Configuring the language menu plugin
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
        // The extension name (in UpperCamelCase) or the extension key (in lower_underscore)
-       'SJBR.' . $_EXTKEY,
+       'SJBR.sr_language_menu',
        // A unique name of the plugin in UpperCamelCase
        'LanguageMenu',
        // An array holding the controller-action-combinations that are accessible
        // The first controller and its first action will be the default
-       array (
+       [
                'Menu' => 'index,redirect'
-       ),
+       ],
        // An array of non-cachable controller-action-combinations (they must already be enabled)
-       array(
-       ),
+       [],
        \TYPO3\CMS\Extbase\Utility\ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
 );
 
@@ -23,10 +22,10 @@ $iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\
 $iconRegistry->registerIcon(
        'tx-srlanguagemenu-language',
        \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
-       ['source' => 'EXT:' . $_EXTKEY . '/Resources/Public/Images/language.svg']
+       ['source' => 'EXT:sr_language_menu/Resources/Public/Images/language.svg']
 );
 
 if (TYPO3_MODE === 'BE') {
        // Include page TS configuration for new element wizard
-       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . $_EXTKEY . '/Configuration/PageTS/modWizards.txt">');
+       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:sr_language_menu/Configuration/PageTS/modWizards.txt">');
 }
\ No newline at end of file
index 7184f0f..b9a4d63 100644 (file)
@@ -7,7 +7,7 @@ if (TYPO3_MODE === 'BE') {
         */
        \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
                // The extension name (in UpperCamelCase) or the extension key (in lower_underscore)
-               'SJBR.' . $_EXTKEY,
+               'SJBR.sr_language_menu',
                // A unique name of the plugin in UpperCamelCase
                'LanguageMenu',
                // A title shown in the backend dropdown field