ModifyPageLayoutContentEvent

final class \TYPO3\CMS\Backend\Controller\Event\ModifyPageLayoutContentEvent

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
getPageContext()  : PageContext
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

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