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

Public Member Functions

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

Protected Attributes

EventDispatcherInterface $eventDispatcher
 
string $globalTsConfig = ''
 

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 environment (Frontend / Backend / current page).

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

Deprecated:
‪since TYPO3 v12, will be removed with v13. Use PageTsConfigFactory instead. When removing, also remove entries in core ServiceProvider, AbstractServiceProvider and Services.yaml.

Definition at line 41 of file PageTsConfigLoader.php.

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ collect()

◆ load()

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

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

Definition at line 63 of file PageTsConfigLoader.php.

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

◆ setGlobalTsConfig()

TYPO3\CMS\Core\Configuration\Loader\PageTsConfigLoader::setGlobalTsConfig ( string  $globalTsConfig)

Member Data Documentation

◆ $eventDispatcher

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

◆ $globalTsConfig

string TYPO3\CMS\Core\Configuration\Loader\PageTsConfigLoader::$globalTsConfig = ''
protected