Breaking: #96041 - Toolbar items: Register by tag¶
See forge#96041
Description¶
Toolbar items implementing \TYPO3\CMS\Backend\Toolbar\ToolbarItemInterface
are now automatically
registered by adding the tag backend.toolbar.item
, if autoconfigure
is enabled in Services.yaml
.
Impact¶
The registration via $GLOBALS['TYPO3_CONF_VARS']['BE']['toolbarItems']
isn't evaluated anymore.
Affected Installations¶
Every extension, that adds toolbar items via $GLOBALS['TYPO3_CONF_VARS']['BE']['toolbarItems']
in its ext_localconf.php
file.
Migration¶
Remove $GLOBALS['TYPO3_CONF_VARS']['BE']['toolbarItems']
from your ext_localconf.php
file.
If autoconfigure
is not enabled in your Configuration/Services.(yaml|php)
, add the tag backend.toolbar.item
to your toolbar item class.
Example:
VENDOR\Extension\ToolbarItem\YourAdditionalToolbarItem:
tags:
- name: backend.toolbar.item
Copied!