Deprecation: #72827 - Module Icon configuration via [labels][tabs_images][tab]
See forge#72827
Description
When registering a non-extbase module, the option to configure an icon was
previously done with the module configuration option [labels]
.
To clarify the naming, the property "icon" is introduced which expects a reference
to the icon via the EXT:
syntax.
The old option [labels]
has been marked as deprecated.
Impact
When using the old configuration property [labels]
, a
deprecation message is thrown.
Affected Installations
Installations with custom backend non-extbase modules of third-party-extensions that still use the old configuration property.
Migration
Replace the [labels]
with [icon]
in ext_
in
your extension like this:
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
'system',
'dbint',
'',
'',
array(
'routeTarget' => \TYPO3\CMS\Lowlevel\View\DatabaseIntegrityView::class . '::mainAction',
'access' => 'admin',
'name' => 'system_dbint',
'workspaces' => 'online',
'icon' => 'EXT:lowlevel/Resources/Public/Icons/module-dbint.svg',
'labels' => 'LLL:EXT:lowlevel/Resources/Private/Language/locallang_mod.xlf'
)
);