‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Domain\Event\BeforePageIsRetrievedEvent Class Reference

Public Member Functions

 __construct (private int $pageId, private readonly bool $skipGroupAccessCheck, private readonly Context $context,)
 getPage ()
 setPage (Page $page)
 hasPage ()
 getPageId ()
 setPageId (int $pageId)
 isGroupAccessCheckSkipped ()
 getContext ()

Private Attributes

Page $page = null

Detailed Description

Event which is fired before a page (id) is being resolved from PageRepository.

Allows to change the corresponding page ID, e.g. to resolve a different page with custom overlaying, or to fully resolve the page on your own.

Definition at line 29 of file BeforePageIsRetrievedEvent.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Domain\Event\BeforePageIsRetrievedEvent::__construct ( private int  $pageId,
private readonly bool  $skipGroupAccessCheck,
private readonly Context  $context 

Definition at line 33 of file BeforePageIsRetrievedEvent.php.

Member Function Documentation

◆ getContext()

TYPO3\CMS\Core\Domain\Event\BeforePageIsRetrievedEvent::getContext ( )

Definition at line 69 of file BeforePageIsRetrievedEvent.php.

◆ getPage()

TYPO3\CMS\Core\Domain\Event\BeforePageIsRetrievedEvent::getPage ( )

◆ getPageId()

TYPO3\CMS\Core\Domain\Event\BeforePageIsRetrievedEvent::getPageId ( )

Definition at line 54 of file BeforePageIsRetrievedEvent.php.

◆ hasPage()

TYPO3\CMS\Core\Domain\Event\BeforePageIsRetrievedEvent::hasPage ( )

Definition at line 49 of file BeforePageIsRetrievedEvent.php.

◆ isGroupAccessCheckSkipped()

TYPO3\CMS\Core\Domain\Event\BeforePageIsRetrievedEvent::isGroupAccessCheckSkipped ( )

Definition at line 64 of file BeforePageIsRetrievedEvent.php.

◆ setPage()

TYPO3\CMS\Core\Domain\Event\BeforePageIsRetrievedEvent::setPage ( Page  $page)

◆ setPageId()

TYPO3\CMS\Core\Domain\Event\BeforePageIsRetrievedEvent::setPageId ( int  $pageId)

Member Data Documentation

◆ $page

Page TYPO3\CMS\Core\Domain\Event\BeforePageIsRetrievedEvent::$page = null