‪TYPO3CMS  ‪main
TYPO3\CMS\Frontend\Event\AfterPageAndLanguageIsResolvedEvent Class Reference

Public Member Functions

 __construct (private readonly ServerRequestInterface $request, private PageInformation $pageInformation,)
 
 getRequest ()
 
 getPageInformation ()
 
 setPageInformation (PageInformation $pageInformation)
 
 getResponse ()
 
 setResponse (ResponseInterface $response)
 

Private Attributes

ResponseInterface $response = null
 

Detailed Description

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)

Definition at line 31 of file AfterPageAndLanguageIsResolvedEvent.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Frontend\Event\AfterPageAndLanguageIsResolvedEvent::__construct ( private readonly ServerRequestInterface  $request,
private PageInformation  $pageInformation 
)

Definition at line 35 of file AfterPageAndLanguageIsResolvedEvent.php.

Member Function Documentation

◆ getPageInformation()

TYPO3\CMS\Frontend\Event\AfterPageAndLanguageIsResolvedEvent::getPageInformation ( )

Definition at line 45 of file AfterPageAndLanguageIsResolvedEvent.php.

◆ getRequest()

TYPO3\CMS\Frontend\Event\AfterPageAndLanguageIsResolvedEvent::getRequest ( )

Definition at line 40 of file AfterPageAndLanguageIsResolvedEvent.php.

◆ getResponse()

TYPO3\CMS\Frontend\Event\AfterPageAndLanguageIsResolvedEvent::getResponse ( )

◆ setPageInformation()

TYPO3\CMS\Frontend\Event\AfterPageAndLanguageIsResolvedEvent::setPageInformation ( PageInformation  $pageInformation)

Definition at line 50 of file AfterPageAndLanguageIsResolvedEvent.php.

◆ setResponse()

TYPO3\CMS\Frontend\Event\AfterPageAndLanguageIsResolvedEvent::setResponse ( ResponseInterface  $response)

Member Data Documentation

◆ $response

ResponseInterface TYPO3\CMS\Frontend\Event\AfterPageAndLanguageIsResolvedEvent::$response = null
private