AfterPageAndLanguageIsResolvedEvent

New in version 12.0: This PSR-14 event replaces the following hooks:

  • $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['determineId-PostProc']
  • $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['settingLanguage_postProcess']

The event fires in the frontend process after a given page has been resolved including its language.

This event modifies TYPO3’s language resolution logic through custom additions. It also allows sending a custom response via event listeners (e.g. a custom 403 response).

Note

There are three events in the process when the main TypoScriptFrontendController class resolves a page and its rootline based on the incoming request. They are triggered in the following order:

API

class TYPO3\CMS\Frontend\Event\AfterPageAndLanguageIsResolvedEvent

A PSR-14 event fired in the frontend process after a given page has been resolved including its language.

This event is intended to modify TYPO3’s language resolving logic by using custom additions. This event also allows for a custom Response to be sent via Event Listeners (e.g. a custom 403 response)

getController()
Return type:TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController
getRequest()
Return type:Psr\Http\Message\ServerRequestInterface
getResponse()
Return type:Psr\Http\Message\ResponseInterface
setResponse(PsrHttpMessageResponseInterface response)
Parameters:
  • $response (PsrHttpMessageResponseInterface) – the response