‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\Controller\Event\ModifyPageLayoutContentEvent Class Reference

Public Member Functions

 __construct (private readonly ServerRequestInterface $request, private readonly ModuleTemplate $moduleTemplate)
 
 getRequest ()
 
 getModuleTemplate ()
 
 setHeaderContent (string $content)
 
 addHeaderContent (string $content)
 
 getHeaderContent ()
 
 setFooterContent (string $content)
 
 addFooterContent (string $content)
 
 getFooterContent ()
 

Private Attributes

string $headerContent = ''
 
string $footerContent = ''
 

Detailed Description

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

Definition at line 26 of file ModifyPageLayoutContentEvent.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Controller\Event\ModifyPageLayoutContentEvent::__construct ( private readonly ServerRequestInterface  $request,
private readonly ModuleTemplate  $moduleTemplate 
)

Definition at line 31 of file ModifyPageLayoutContentEvent.php.

Member Function Documentation

◆ addFooterContent()

TYPO3\CMS\Backend\Controller\Event\ModifyPageLayoutContentEvent::addFooterContent ( string  $content)

Add additional content to the footer

Definition at line 80 of file ModifyPageLayoutContentEvent.php.

Referenced by TYPO3\CMS\SysNote\Provider\PageModuleProvider\__invoke().

◆ addHeaderContent()

TYPO3\CMS\Backend\Controller\Event\ModifyPageLayoutContentEvent::addHeaderContent ( string  $content)

Add additional content to the header

Definition at line 58 of file ModifyPageLayoutContentEvent.php.

Referenced by TYPO3\CMS\SysNote\Provider\PageModuleProvider\__invoke().

◆ getFooterContent()

TYPO3\CMS\Backend\Controller\Event\ModifyPageLayoutContentEvent::getFooterContent ( )

◆ getHeaderContent()

TYPO3\CMS\Backend\Controller\Event\ModifyPageLayoutContentEvent::getHeaderContent ( )

◆ getModuleTemplate()

TYPO3\CMS\Backend\Controller\Event\ModifyPageLayoutContentEvent::getModuleTemplate ( )

Definition at line 41 of file ModifyPageLayoutContentEvent.php.

◆ getRequest()

TYPO3\CMS\Backend\Controller\Event\ModifyPageLayoutContentEvent::getRequest ( )

◆ setFooterContent()

TYPO3\CMS\Backend\Controller\Event\ModifyPageLayoutContentEvent::setFooterContent ( string  $content)

Set content for the footer. Can also be used to e.g. reorder existing content. IMPORTANT: This overwrites existing content from previous listeners!

Definition at line 72 of file ModifyPageLayoutContentEvent.php.

◆ setHeaderContent()

TYPO3\CMS\Backend\Controller\Event\ModifyPageLayoutContentEvent::setHeaderContent ( string  $content)

Set content for the header. Can also be used to e.g. reorder existing content. IMPORTANT: This overwrites existing content from previous listeners!

Definition at line 50 of file ModifyPageLayoutContentEvent.php.

Member Data Documentation

◆ $footerContent

string TYPO3\CMS\Backend\Controller\Event\ModifyPageLayoutContentEvent::$footerContent = ''
private

◆ $headerContent

string TYPO3\CMS\Backend\Controller\Event\ModifyPageLayoutContentEvent::$headerContent = ''
private