Contao Utils Bundle

PageUtil
in package

Table of Contents

Constants

PAGE_MODEL_TYPE_ROOT  = 'root'

Properties

$framework  : ContaoFrameworkInterface
$container  : ContainerInterface

Methods

__construct()  : mixed
retrieveGlobalPageFromCurrentPageId()  : PageModel|null
setParametersFromLayout()  : void

Constants

PAGE_MODEL_TYPE_ROOT

public mixed PAGE_MODEL_TYPE_ROOT = 'root'

Properties

$framework

protected ContaoFrameworkInterface $framework

$container

private ContainerInterface $container

Methods

__construct()

public __construct(ContainerInterface $container) : mixed
Parameters
$container : ContainerInterface

retrieveGlobalPageFromCurrentPageId()

public retrieveGlobalPageFromCurrentPageId(int $id) : PageModel|null
Parameters
$id : int
Return values
PageModel|null

setParametersFromLayout()

protected setParametersFromLayout(PageModel &$page) : void
Parameters
$page : PageModel

        
On this page

Search results