‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Configuration\PageTsConfig Class Reference

Public Member Functions

 __construct (FrontendInterface $cache, PageTsConfigLoader $loader, PageTsConfigParser $parser)
 
 getForRootLine (array $rootLine, ?Site $site, ConditionMatcherInterface $conditionMatcher)
 
 getWithUserOverride (int $pageId, array $rootLine, ?Site $site, ConditionMatcherInterface $conditionMatcher, BackendUserAuthentication $user=null)
 

Protected Attributes

FrontendInterface $cache
 
PageTsConfigLoader $loader
 
PageTsConfigParser $parser
 

Detailed Description

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.

Definition at line 33 of file PageTsConfig.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Configuration\PageTsConfig::__construct ( FrontendInterface  $cache,
PageTsConfigLoader  $loader,
PageTsConfigParser  $parser 
)

Member Function Documentation

◆ getForRootLine()

TYPO3\CMS\Core\Configuration\PageTsConfig::getForRootLine ( array  $rootLine,
?Site  $site,
ConditionMatcherInterface  $conditionMatcher 
)

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

Definition at line 50 of file PageTsConfig.php.

Referenced by TYPO3\CMS\Core\Configuration\PageTsConfig\getWithUserOverride().

◆ getWithUserOverride()

TYPO3\CMS\Core\Configuration\PageTsConfig::getWithUserOverride ( int  $pageId,
array  $rootLine,
?Site  $site,
ConditionMatcherInterface  $conditionMatcher,
BackendUserAuthentication  $user = null 
)

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.

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

Definition at line 65 of file PageTsConfig.php.

References TYPO3\CMS\Core\Configuration\PageTsConfig\getForRootLine().

Member Data Documentation

◆ $cache

FrontendInterface TYPO3\CMS\Core\Configuration\PageTsConfig::$cache
protected

◆ $loader

PageTsConfigLoader TYPO3\CMS\Core\Configuration\PageTsConfig::$loader
protected

◆ $parser

PageTsConfigParser TYPO3\CMS\Core\Configuration\PageTsConfig::$parser
protected