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

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()
Return type

string

getRecord()
Return type

array

setRecord(array $record)
Parameters
  • $record (array) -- the record

getLanguageAspect()
Return type

TYPO3\CMS\Core\Context\LanguageAspect

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