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

Public Member Functions

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

Private Attributes

ResponseInterface $response = null
 

Detailed Description

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.

Definition at line 30 of file AfterPageWithRootLineIsResolvedEvent.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 34 of file AfterPageWithRootLineIsResolvedEvent.php.

Member Function Documentation

◆ getPageInformation()

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

Definition at line 54 of file AfterPageWithRootLineIsResolvedEvent.php.

◆ getRequest()

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

Definition at line 39 of file AfterPageWithRootLineIsResolvedEvent.php.

◆ getResponse()

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

◆ setPageInformation()

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

Definition at line 59 of file AfterPageWithRootLineIsResolvedEvent.php.

◆ setResponse()

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

Member Data Documentation

◆ $response

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