AfterPageWithRootLineIsResolvedEvent

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

  • $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['fetchPageId-PostProcessing']
  • $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['settingLanguage_preProcess']

The event fires in the frontend process after a given page has been resolved with permissions, rootline etc.

This is useful for modifying the page and root (but before resolving the language), to direct or load content from another page, or for modifying the page response if additional permissions should be checked.

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\AfterPageWithRootLineIsResolvedEvent

A PSR-14 event fired in the frontend process after a given page has been resolved with permissions, rootline etc.

This is useful to modify the page + rootline (but before the language is resolved) to direct or load content from a different page, or modify the page response if additional permissions should be checked.

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