TypoScriptService
Utilities to manage and convert TypoScript
Scope: frontend
Table of Contents
Properties
Methods
- __construct() : mixed
- resolvePossibleTypoScriptConfiguration() : array<string|int, mixed>
- Parse a configuration with ContentObjectRenderer::cObjGetSingle() and return the result.
- getTypoScriptFrontendController() : TypoScriptFrontendController
- resolveTypoScriptConfiguration() : array<string|int, mixed>
- Parse a configuration with ContentObjectRenderer::cObjGetSingle() if there is an array key without and with a dot at the end.
Properties
$coreTypoScriptService
protected
TypoScriptService
$coreTypoScriptService
Methods
__construct()
public
__construct(TypoScriptService $coreTypoScriptService) : mixed
Parameters
- $coreTypoScriptService : TypoScriptService
resolvePossibleTypoScriptConfiguration()
Parse a configuration with ContentObjectRenderer::cObjGetSingle() and return the result.
public
resolvePossibleTypoScriptConfiguration([array<string|int, mixed> $configuration = [] ]) : array<string|int, mixed>
Parameters
- $configuration : array<string|int, mixed> = []
Return values
array<string|int, mixed>getTypoScriptFrontendController()
protected
getTypoScriptFrontendController() : TypoScriptFrontendController
Return values
TypoScriptFrontendControllerresolveTypoScriptConfiguration()
Parse a configuration with ContentObjectRenderer::cObjGetSingle() if there is an array key without and with a dot at the end.
protected
resolveTypoScriptConfiguration([array<string|int, mixed> $configuration = [] ]) : array<string|int, mixed>
This sample would be identified as a TypoScript parsable configuration part:
[ 'example' => 'TEXT' 'example.' => [ 'value' => 'some value' ] ]
Parameters
- $configuration : array<string|int, mixed> = []