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']['getRecordOverlay']

  • $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_page.php']['getPageOverlay']

have been removed in favor of new PSR-14 events.

In addition, the method PageRepository->getRecordOverlay() 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 PageRepository->getRecordOverlay() 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\BeforeRecordLanguageOverlayEvent

  • \TYPO3\CMS\Core\Domain\Event\AfterRecordLanguageOverlayEvent

  • \TYPO3\CMS\Core\Domain\Event\BeforePageLanguageOverlayEvent

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 PageRepository->getRecordOverlay() should call PageRepository->getLanguageOverlay() 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.