Breaking: #97188 - Register element browsers via service configuration
See forge#97188
Description
The element browsers
in EXT:backend are now registered via service
configuration, see the feature changelog.
Therefore the registration via
$GLOBALS
has been removed.
Additionally, to be able to use autoconfiguration, the element browser
identifier has to be provided by the service directly using the
get
method, which is now required by the
Element
.
In case a custom element browser
extends
\TYPO3\
,
only the class property $identifier
has to be set, e.g.
protected string $identifier = 'my_
.
Impact
Registration of custom element browsers
via
$GLOBALS
is not evaluated anymore.
The Element
is extended for
public function get
.
Affected Installations
All TYPO3 installations using the old registration.
All TYPO3 installations with custom element browsers
, not implementing
public function get
.
Migration
Remove $GLOBALS
from your ext_
file.
If autoconfigure
is not enabled in your Configuration/
,
add the tag recordlist.
manually to your element browser
service.
Vendor\Extension\Recordlist\MyBrowser:
tags:
- name: recordlist.elementbrowser
Additionally, make sure to either implement
public function get
or, in case your element browser
extends Abstract
, to set the $identifier
class property.