‪TYPO3CMS  10.4
TYPO3\CMS\Core\Configuration\Loader\PageTsConfigLoader Class Reference

Public Member Functions

 __construct (EventDispatcherInterface $eventDispatcher)
 
string load (array $rootLine)
 
array collect (array $rootLine)
 

Protected Attributes

EventDispatcherInterface $eventDispatcher
 

Detailed Description

Traverses a root line of a pagetree up and includes all available TSconfig settings, including default setup. Then include lines are checked, and merged together into one string, ready to be parsed.

Can be used in Frontend or Backend.

Have a look at the PageTsConfigParser which can then parse (and cache) this information based on the.

Currently, this accumulated information of the pages is NOT cached, as it would need to be tagged with any page, also including external files.

Definition at line 38 of file PageTsConfigLoader.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Configuration\Loader\PageTsConfigLoader::__construct ( EventDispatcherInterface  $eventDispatcher)

Member Function Documentation

◆ collect()

array TYPO3\CMS\Core\Configuration\Loader\PageTsConfigLoader::collect ( array  $rootLine)

◆ load()

string TYPO3\CMS\Core\Configuration\Loader\PageTsConfigLoader::load ( array  $rootLine)

Main method to get all PageTSconfig from the rootline including the defaultTSconfig settings.

Parameters
array$rootLine
Returns
‪string

Definition at line 54 of file PageTsConfigLoader.php.

References TYPO3\CMS\Core\Configuration\Loader\PageTsConfigLoader\collect().

Member Data Documentation

◆ $eventDispatcher

EventDispatcherInterface TYPO3\CMS\Core\Configuration\Loader\PageTsConfigLoader::$eventDispatcher
protected