Breaking: #98303 - Removed hooks for language overlays in PageRepository
See forge#98303
Description
The hooks
$GLOBALS
['TYPO3_ CONF_ VARS'] ['SC_ OPTIONS'] ['t3lib/ class. t3lib_ page. php'] ['get Record Overlay'] $GLOBALS
['TYPO3_ CONF_ VARS'] ['SC_ OPTIONS'] ['t3lib/ class. t3lib_ page. php'] ['get Page Overlay']
have been removed in favor of new PSR-14 events.
In addition, the method Page
has been
marked as protected as the new events take place at a slightly different
piece of code.
Impact
Extensions using these hooks will have no effect anymore.
Extensions calling Page
will trigger
a deprecation warning.
Affected installations
TYPO3 installations with custom extensions using these hooks.
Migration
Migrate to the new PSR-14 events:
\TYPO3\
CMS\ Core\ Domain\ Event\ Before Record Language Overlay Event \TYPO3\
CMS\ Core\ Domain\ Event\ After Record Language Overlay Event \TYPO3\
CMS\ Core\ Domain\ Event\ Before Page Language Overlay Event
Extensions using the hooks can be made compatible with TYPO3 v11 and TYPO3 v12 by registering a PSR-14-based event listener while keeping the legacy hook in place.
Extensions calling Page
should call
Page
instead.
The events are now fired for any kind of database table, and are much more generic, as they contain the full language fallback chain and overlay behavior.