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

getPageId()

public getPageId() : int
Return values
int

hasPage()

public hasPage() : bool
Return values
bool

isGroupAccessCheckSkipped()

public isGroupAccessCheckSkipped() : bool
Return values
bool

respectGroupAccessCheck()

public respectGroupAccessCheck() : void

setPageId()

public setPageId(int $pageId) : void
Parameters
$pageId : int

skipGroupAccessCheck()

public skipGroupAccessCheck() : void

        
On this page

Search results