ModifyLoadedPageTsConfigEvent

FinalYes

Extensions can modify page TSconfig entries that can be overridden or added, based on the root line

Deprecated

since v12, will be removed in v13. Switch to \TYPO3\CMS\Core\TypoScript\IncludeTree\Event\ModifyLoadedPageTsConfigEvent. When removing, delete the class and adapt test_typoscript_pagetsconfigfactory test extension and related test.

Table of Contents

Methods

__construct()  : mixed
addTsConfig()  : void
getRootLine()  : array<string|int, mixed>
getTsConfig()  : array<string|int, mixed>
setTsConfig()  : void

Methods

__construct()

public __construct(array<string|int, mixed> $tsConfig, array<string|int, mixed> $rootLine) : mixed
Parameters
$tsConfig : array<string|int, mixed>
$rootLine : array<string|int, mixed>

addTsConfig()

public addTsConfig(string $tsConfig) : void
Parameters
$tsConfig : string

getRootLine()

public getRootLine() : array<string|int, mixed>
Return values
array<string|int, mixed>

getTsConfig()

public getTsConfig() : array<string|int, mixed>
Return values
array<string|int, mixed>

setTsConfig()

public setTsConfig(array<string|int, mixed> $tsConfig) : void
Parameters
$tsConfig : array<string|int, mixed>

        
On this page

Search results