PageTsConfigLoader

class \TYPO3\CMS\Core\Configuration\Loader\PageTsConfigLoader

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.

Table of Contents

Properties

$eventDispatcher  : EventDispatcherInterface

Methods

__construct()  : mixed
collect()  : array
Same as "load()" but returns an array of all parts. Only useful in the TYPO3 Backend for inspection purposes.
load()  : string
Main method to get all PageTSconfig from the rootline including the defaultTSconfig settings.

Properties

$eventDispatcher

protected EventDispatcherInterface $eventDispatcher

Methods

__construct()

public __construct(EventDispatcherInterface $eventDispatcher) : mixed

Parameters

$eventDispatcher : EventDispatcherInterface

collect()

Same as "load()" but returns an array of all parts. Only useful in the TYPO3 Backend for inspection purposes.

public collect(array $rootLine) : array

Parameters

$rootLine : array

Return values

array

load()

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

public load(array $rootLine) : string

Parameters

$rootLine : array

Return values

string
On this page