Bug #80844

Updated by Simon Schaufelberger over 3 years ago

This code snippet worked in TYPO3 7 while in TYPO3 8 the extbase icon is shown:

using: iconIdentifier

<pre>
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
\TYPO3\CMS\Core\Imaging\IconRegistry::class
);
$iconRegistry->registerIcon(
'module-seo',
\TYPO3\CMS\Core\Imaging\IconProvider\FontawesomeIconProvider::class,
['name' => 'bullseye']
);

\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
$_EXTKEY,
'metaseo',
'',
'',
[],
[
'access' => 'user,group',
'iconIdentifier' => 'module-seo',
'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/ModuleMain/locallang.xlf',
]
);
</pre>

in TYPO3 8 i need to "unset" the extbase icon which gets merged into the options array:

<pre>
'icon' => '',
'iconIdentifier' => 'module-seo',
</pre>

related commits:
https://github.com/TYPO3/TYPO3.CMS/commit/241497a2ab5e34501ead41106e021de0145b8332
https://github.com/TYPO3/TYPO3.CMS/commit/562b7c1d19d29579f86082596c6493207b2d4da8

I'm quite sure this peace of code is responsible for it:

https://github.com/TYPO3/TYPO3.CMS/blob/master/typo3/sysext/core/Classes/Utility/ExtensionManagementUtility.php#L942-L953

See also: https://github.com/mblaschke/TYPO3-metaseo/pull/417

Back