[BUGFIX] Upgrade extension registerPlugin
This commit is contained in:
parent
fb54d608a6
commit
d9e0ae6c44
12
Configuration/TCA/Overrides/tt_content.php
Normal file
12
Configuration/TCA/Overrides/tt_content.php
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<?php
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
|
||||||
|
|
||||||
|
defined('TYPO3') or die();
|
||||||
|
|
||||||
|
ExtensionUtility::registerPlugin(
|
||||||
|
'TemplatesAide',
|
||||||
|
'Translationplugin',
|
||||||
|
''
|
||||||
|
);
|
@ -1,34 +1,36 @@
|
|||||||
<?php
|
<?php
|
||||||
defined('TYPO3_MODE') || die('Access denied.');
|
defined('TYPO3_MODE') || die('Access denied.');
|
||||||
|
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
|
||||||
|
use Cjel\TemplatesAide\Controller\DummyController;
|
||||||
|
use Cjel\TemplatesAide\Controller\TranslationController;
|
||||||
call_user_func(
|
call_user_func(
|
||||||
function()
|
function()
|
||||||
{
|
{
|
||||||
|
|
||||||
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
|
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
|
||||||
'Cjel.TemplatesAide',
|
'TemplatesAide',
|
||||||
'Dummy',
|
'Dummy',
|
||||||
[
|
[
|
||||||
'Dummy' => 'list',
|
DummyController::class => 'list',
|
||||||
'Translation' => 'translations'
|
TranslationController::class => 'translations'
|
||||||
],
|
],
|
||||||
// non-cacheable actions
|
// non-cacheable actions
|
||||||
[
|
[
|
||||||
'Dummy' => '',
|
DummyController::class => '',
|
||||||
'Translation' => ''
|
TranslationController::class => ''
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
|
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
|
||||||
'Cjel.TemplatesAide',
|
'TemplatesAide',
|
||||||
'Translationplugin',
|
'Translationplugin',
|
||||||
[
|
[
|
||||||
'Translation' => 'translations'
|
TranslationController::class => 'translations'
|
||||||
],
|
],
|
||||||
// non-cacheable actions
|
// non-cacheable actions
|
||||||
[
|
[
|
||||||
'Dummy' => '',
|
DummyController::class => '',
|
||||||
'Translation' => ''
|
TranslationController::class => ''
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -61,19 +63,19 @@ call_user_func(
|
|||||||
}'
|
}'
|
||||||
);
|
);
|
||||||
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
|
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
|
||||||
|
|
||||||
$iconRegistry->registerIcon(
|
$iconRegistry->registerIcon(
|
||||||
'templates_aide-plugin-dummy',
|
'templates_aide-plugin-dummy',
|
||||||
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
|
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
|
||||||
['source' => 'EXT:templates_aide/Resources/Public/Icons/user_plugin_dummy.svg']
|
['source' => 'EXT:templates_aide/Resources/Public/Icons/user_plugin_dummy.svg']
|
||||||
);
|
);
|
||||||
|
|
||||||
$iconRegistry->registerIcon(
|
$iconRegistry->registerIcon(
|
||||||
'templates_aide-plugin-translationplugin',
|
'templates_aide-plugin-translationplugin',
|
||||||
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
|
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
|
||||||
['source' => 'EXT:templates_aide/Resources/Public/Icons/user_plugin_translationplugin.svg']
|
['source' => 'EXT:templates_aide/Resources/Public/Icons/user_plugin_translationplugin.svg']
|
||||||
);
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
## EXTENSION BUILDER DEFAULTS END TOKEN - Everything BEFORE this line is overwritten with the defaults of the extension builder
|
## EXTENSION BUILDER DEFAULTS END TOKEN - Everything BEFORE this line is overwritten with the defaults of the extension builder
|
||||||
|
Loading…
x
Reference in New Issue
Block a user