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

Public Member Functions

 __construct (private array $tsConfig=[])
 
 getTsConfig ()
 
 addTsConfig (string $tsConfig)
 
 setTsConfig (array $tsConfig)
 

Detailed Description

Extensions can add global page TSconfig right before they are loaded from other sources like the global page.tsconfig file.

Note: The added config should not depend on runtime / request. This is considered static config and thus should be identical on every request.

Definition at line 27 of file BeforeLoadedPageTsConfigEvent.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\TypoScript\IncludeTree\Event\BeforeLoadedPageTsConfigEvent::__construct ( private array  $tsConfig = [])

Definition at line 29 of file BeforeLoadedPageTsConfigEvent.php.

Member Function Documentation

◆ addTsConfig()

TYPO3\CMS\Core\TypoScript\IncludeTree\Event\BeforeLoadedPageTsConfigEvent::addTsConfig ( string  $tsConfig)

◆ getTsConfig()

TYPO3\CMS\Core\TypoScript\IncludeTree\Event\BeforeLoadedPageTsConfigEvent::getTsConfig ( )

Definition at line 31 of file BeforeLoadedPageTsConfigEvent.php.

◆ setTsConfig()

TYPO3\CMS\Core\TypoScript\IncludeTree\Event\BeforeLoadedPageTsConfigEvent::setTsConfig ( array  $tsConfig)

Definition at line 41 of file BeforeLoadedPageTsConfigEvent.php.