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¶
Note
Currently, we do not have an example for this event. If you can provide a useful one, please open an issue with your code snippets or a pull request.
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