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\AddJavaScriptModulesEvent

With the integration of EXT:setup into EXT:backend (see Important: #109517 - Setup extension merged into backend extension) this event is now superseded by:

  • \TYPO3\CMS\Backend\Event\AddUserSettingsJavaScriptModulesEvent

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 AddUserSettingsJavaScriptModulesEvent must be utilized instead.

Affected installations 

Instances or extensions that register a PSR-14 listener on AddJavaScriptModulesEvent are affected.

Migration 

See Moved event AddJavaScriptModulesEvent, the new event name and class namespace can be used with no further functional changes.