ModifyPageLayoutContentEvent

FinalYes

Listeners to this Event will be able to modify the header and footer content of the page module

Table of Contents

Methods

__construct()  : mixed
addFooterContent()  : void
Add additional content to the footer
addHeaderContent()  : void
Add additional content to the header
getFooterContent()  : string
getHeaderContent()  : string
getModuleTemplate()  : ModuleTemplate
getRequest()  : ServerRequestInterface
setFooterContent()  : void
Set content for the footer. Can also be used to e.g. reorder existing content.
setHeaderContent()  : void
Set content for the header. Can also be used to e.g. reorder existing content.

Methods

__construct()

public __construct(ServerRequestInterface $request, ModuleTemplate $moduleTemplate) : mixed
Parameters
$request : ServerRequestInterface
$moduleTemplate : ModuleTemplate

addFooterContent()

Add additional content to the footer

public addFooterContent(string $content) : void
Parameters
$content : string

addHeaderContent()

Add additional content to the header

public addHeaderContent(string $content) : void
Parameters
$content : string

getFooterContent()

public getFooterContent() : string
Return values
string

getHeaderContent()

public getHeaderContent() : string
Return values
string

getRequest()

public getRequest() : ServerRequestInterface
Return values
ServerRequestInterface

setFooterContent()

Set content for the footer. Can also be used to e.g. reorder existing content.

public setFooterContent(string $content) : void

IMPORTANT: This overwrites existing content from previous listeners!

Parameters
$content : string

setHeaderContent()

Set content for the header. Can also be used to e.g. reorder existing content.

public setHeaderContent(string $content) : void

IMPORTANT: This overwrites existing content from previous listeners!

Parameters
$content : string

        
On this page

Search results