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 BeforeRecordLanguageOverlayEvent ¶
-
- Fully qualified name
- \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 ( ) ¶
-
- Returns
-
string
- getRecord ( ) ¶
-
- Returns
-
array
- setRecord ( array $record) ¶
-
- param $record
-
the record
- getLanguageAspect ( ) ¶
-
- Returns
-
\TYPO3\CMS\Core\Context\LanguageAspect
- setLanguageAspect ( \TYPO3\CMS\Core\Context\LanguageAspect $languageAspect) ¶
-
- param $languageAspect
-
the languageAspect