AfterPageAndLanguageIsResolvedEvent 

The PSR-14 event \TYPO3\CMS\Frontend\Event\AfterPageAndLanguageIsResolvedEvent is fired 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 (for example, a custom 403 response).

Example 

API 

final class AfterPageAndLanguageIsResolvedEvent
Fully qualified name
\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 e.g. modify TYPO3's language resolving logic by custom additions. This event also allows to send a custom Response via Event Listeners (e.g. a custom 403 response)

getRequest()
Returns
\Psr\Http\Message\ServerRequestInterface
getPageInformation()
Returns
\TYPO3\CMS\Frontend\Page\PageInformation
setPageInformation(\TYPO3\CMS\Frontend\Page\PageInformation $pageInformation)
param $pageInformation

the pageInformation

getResponse()
Returns
?\Psr\Http\Message\ResponseInterface
setResponse(\Psr\Http\Message\ResponseInterface $response)
param $response

the response