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<string|int, mixed>
- 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<string|int, mixed> $rootLine) : array<string|int, mixed>
Parameters
- $rootLine : array<string|int, mixed>
Return values
array<string|int, mixed>load()
Main method to get all PageTSconfig from the rootline including the defaultTSconfig settings.
public
load(array<string|int, mixed> $rootLine) : string
Parameters
- $rootLine : array<string|int, mixed>