‪TYPO3CMS  ‪main
TYPO3\CMS\Core\TypoScript\IncludeTree\Event\AfterTemplatesHaveBeenDeterminedEvent Class Reference

Public Member Functions

 __construct (private readonly array $rootline, private readonly ?ServerRequestInterface $request, private array $templateRows,)
 
 getRootline ()
 
 getRequest ()
 
 getSite ()
 
 getTemplateRows ()
 
 setTemplateRows (array $templateRows)
 

Detailed Description

A PSR-14 event fired when sys_template rows have been fetched.

This event is intended to add own rows based on given rows or site resolution.

Definition at line 28 of file AfterTemplatesHaveBeenDeterminedEvent.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\TypoScript\IncludeTree\Event\AfterTemplatesHaveBeenDeterminedEvent::__construct ( private readonly array  $rootline,
private readonly ?ServerRequestInterface  $request,
private array  $templateRows 
)

Definition at line 30 of file AfterTemplatesHaveBeenDeterminedEvent.php.

Member Function Documentation

◆ getRequest()

TYPO3\CMS\Core\TypoScript\IncludeTree\Event\AfterTemplatesHaveBeenDeterminedEvent::getRequest ( )

Definition at line 41 of file AfterTemplatesHaveBeenDeterminedEvent.php.

◆ getRootline()

TYPO3\CMS\Core\TypoScript\IncludeTree\Event\AfterTemplatesHaveBeenDeterminedEvent::getRootline ( )

◆ getSite()

TYPO3\CMS\Core\TypoScript\IncludeTree\Event\AfterTemplatesHaveBeenDeterminedEvent::getSite ( )

Convenience method to directly retrieve the Site. May be null though!

Definition at line 49 of file AfterTemplatesHaveBeenDeterminedEvent.php.

Referenced by TYPO3Tests\TestBolt\EventListener\AddTypoScriptFromSiteExtensionEventListener\__invoke().

◆ getTemplateRows()

TYPO3\CMS\Core\TypoScript\IncludeTree\Event\AfterTemplatesHaveBeenDeterminedEvent::getTemplateRows ( )

◆ setTemplateRows()

TYPO3\CMS\Core\TypoScript\IncludeTree\Event\AfterTemplatesHaveBeenDeterminedEvent::setTemplateRows ( array  $templateRows)