BeforePageIsRetrievedEvent
FinalYes
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.
Table of Contents
Methods
- __construct() : mixed
- getContext() : Context
- getPage() : Page|null
- getPageId() : int
- hasPage() : bool
- isGroupAccessCheckSkipped() : bool
- respectGroupAccessCheck() : void
- setPage() : void
- setPageId() : void
- skipGroupAccessCheck() : void
Methods
__construct()
public
__construct(int $pageId, bool $skipGroupAccessCheck, Context $context) : mixed
Parameters
- $pageId : int
- $skipGroupAccessCheck : bool
- $context : Context
getContext()
public
getContext() : Context
Return values
ContextgetPage()
public
getPage() : Page|null
Return values
Page|nullgetPageId()
public
getPageId() : int
Return values
inthasPage()
public
hasPage() : bool
Return values
boolisGroupAccessCheckSkipped()
public
isGroupAccessCheckSkipped() : bool
Return values
boolrespectGroupAccessCheck()
public
respectGroupAccessCheck() : void
setPage()
public
setPage(Page $page) : void
Parameters
- $page : Page
setPageId()
public
setPageId(int $pageId) : void
Parameters
- $pageId : int
skipGroupAccessCheck()
public
skipGroupAccessCheck() : void