BeforeRecordLanguageOverlayEvent

New in version 12.0

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

The PSR-14 event \TYPO3\CMS\Core\Domain\Event\BeforeRecordLanguageOverlayEvent can be used to modify information (such as the LanguageAspect or the actual incoming record from the database) before the database is queried.

Example

API

class \TYPO3\CMS\Core\Domain\Event\ BeforeRecordLanguageOverlayEvent

Event which is fired before a record in a language should be "language overlaid", that is: Finding a translation for a given record.

getTable ( )
returntype

string

getRecord ( )
returntype

array

setRecord ( array $record)
param array $record

the record

getLanguageAspect ( )
returntype

TYPO3\CMS\Core\Context\LanguageAspect

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

the languageAspect