PageTsConfig

class \TYPO3\CMS\Core\Configuration\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
Load, parse and match all page TSconfig for a given page from a root line.
getWithUserOverride()  : array
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

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 $rootLine, Site|null $site, ConditionMatcherInterface $conditionMatcher[, BackendUserAuthentication|null $user = null ]) : array

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

Parameters

$pageId : int
$rootLine : array
$site : Site|null
$conditionMatcher : ConditionMatcherInterface
$user : BackendUserAuthentication|null = null

Return values

array
On this page