‪TYPO3CMS  ‪main
TYPO3\CMS\Core\TypoScript\PageTsConfigFactory Class Reference

Public Member Functions

 __construct (private readonly ContainerInterface $container, private readonly TokenizerInterface $tokenizer, private readonly TsConfigTreeBuilder $tsConfigTreeBuilder, private readonly PhpFrontend $cache,)
 
 create (array $fullRootLine, SiteInterface $site, ?UserTsConfig $userTsConfig=null)
 

Detailed Description

Calculate page TSconfig. This does the heavy lifting additionally supported by TsConfigTreeBuilder: Load basic page TSconfig tree, overload with user TSconfig, parse site settings ("constants"), then build the page TSconfig AST and return page TSconfig DTO.

Internal for now until API stabilized. Use BackendUtility::getPagesTSconfig().

Definition at line 43 of file PageTsConfigFactory.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\TypoScript\PageTsConfigFactory::__construct ( private readonly ContainerInterface  $container,
private readonly TokenizerInterface  $tokenizer,
private readonly TsConfigTreeBuilder  $tsConfigTreeBuilder,
private readonly PhpFrontend  $cache 
)

Definition at line 45 of file PageTsConfigFactory.php.

Member Function Documentation

◆ create()

TYPO3\CMS\Core\TypoScript\PageTsConfigFactory::create ( array  $fullRootLine,
SiteInterface  $site,
?UserTsConfig  $userTsConfig = null 
)