Deprecation: #109517 - PSR-14 event
\TYPO3\CMS\Setup\Event\AddJavaScriptModulesEvent
See forge#109517
Description
The PSR-14 event that is dispatched in the User Settings panel to allow injection of custom JavaScript methods has been deprecated:
\TYPO3\CMS\ Setup\ Event\ Add Java Script Modules Event
With the integration of EXT: into EXT: (see
Important: #109517 - Setup extension merged into backend extension) this event is now superseded
by:
\TYPO3\CMS\ Backend\ Event\ Add User Settings Java Script Modules Event
For better dual version compatibility, no deprecation es emitted when using the legacy event location.
Migration to the new event can be done by just replacing its new name. For details, see Moved event AddJavaScriptModulesEvent.
Impact
Using the old event will work as before in TYPO3 v14 but will be removed with TYPO3 v15.0.
To keep listeners working, the new event
Add
must be utilized instead.
Affected installations
Instances or extensions that register a PSR-14 listener on
Add are affected.
Migration
See Moved event AddJavaScriptModulesEvent, the new event name and class namespace can be used with no further functional changes.