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'].

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

API

class TYPO3\CMS\Core\Domain\Event\BeforePageLanguageOverlayEvent

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

getPageInput()
Return type

array

setPageInput(array $pageInput)
Parameters
  • $pageInput (array) -- the pageInput

getPageIds()
Return type

array

setPageIds(array $pageIds)
Parameters
  • $pageIds (array) -- the pageIds

getLanguageAspect()
Return type

TYPO3\CMS\Core\Context\LanguageAspect

setLanguageAspect(TYPO3\\CMS\\Core\\Context\\LanguageAspect $languageAspect)
Parameters
  • $languageAspect (TYPO3\CMS\Core\Context\LanguageAspect) -- the languageAspect