PageTsConfig

Main entry point for fetching page TSconfig for frontend and backend.

Deprecated

since TYPO3 v12, will be removed with v13. Use PageTsConfigFactory instead. When removing, also remove entries in core Services.yaml and usage in TypoScriptFrontendController.

Table of Contents

Properties

$cache  : FrontendInterface
$loader  : PageTsConfigLoader
$parser  : PageTsConfigParser

Methods

__construct()  : mixed
getForRootLine()  : array<string|int, mixed>
Load, parse and match all page TSconfig for a given page from a root line.
getWithUserOverride()  : array<string|int, mixed>
Fetch and compile all page TSconfig for a given page from a root line, but also overloads user-specific "page." properties which is possible too.

Properties

Methods

getForRootLine()

Load, parse and match all page TSconfig for a given page from a root line.

public getForRootLine(array<string|int, mixed> $rootLine, Site|null $site, ConditionMatcherInterface $conditionMatcher) : array<string|int, mixed>
Parameters
$rootLine : array<string|int, mixed>
$site : Site|null
$conditionMatcher : ConditionMatcherInterface
Return values
array<string|int, mixed>

getWithUserOverride()

Fetch and compile all page TSconfig for a given page from a root line, but also overloads user-specific "page." properties which is possible too.

public getWithUserOverride(int $pageId, array<string|int, mixed> $rootLine, Site|null $site, ConditionMatcherInterface $conditionMatcher[, BackendUserAuthentication|null $user = null ]) : array<string|int, mixed>

This then caches a specific version away during runtime to avoid multiple overloads.

Parameters
$pageId : int
$rootLine : array<string|int, mixed>
$site : Site|null
$conditionMatcher : ConditionMatcherInterface
$user : BackendUserAuthentication|null = null
Return values
array<string|int, mixed>

        
On this page

Search results