BeforePageLanguageOverlayEvent

New in version 12.0

This event serves as a replacement for the removed hook $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_page.php']['getPageOverlay'].

The PSR-14 event \TYPO3\CMS\Core\Domain\Event\BeforePageLanguageOverlayEvent is a special event which is fired when TYPO3 is about to do the language overlay of one or multiple pages, which could be one full record or multiple page IDs. This event is fired only for pages and in-between the events BeforeRecordLanguageOverlayEvent and AfterRecordLanguageOverlayEvent.

Example

API

class BeforePageLanguageOverlayEvent
Fully qualified name
\TYPO3\CMS\Core\Domain\Event\TYPO3\CMS\Core\Domain\Event

Event which is fired before a single page or a list of pages are about to be translated (or tried to be localized).

getPageInput ( )
Returns
array
setPageInput ( array $pageInput)
param $pageInput

the pageInput

getPageIds ( )
Returns
array
setPageIds ( array $pageIds)
param $pageIds

the pageIds

getLanguageAspect ( )
Returns
TYPO3CMSCoreContextLanguageAspect
setLanguageAspect ( TYPO3\CMS\Core\Context\LanguageAspect $languageAspect)
param $languageAspect

the languageAspect