TypoScriptService

readonly class \TYPO3\CMS\Form\Mvc\Configuration\TypoScriptService

Utilities to manage and convert TypoScript

Scope: frontend

Table of Contents

Properties

$coreTypoScriptService  : TypoScriptService

Methods

__construct()  : mixed
resolvePossibleTypoScriptConfiguration()  : array
Parse a configuration with ContentObjectRenderer::cObjGetSingle() and return the result.
resolveTypoScriptConfiguration()  : array
Parse a configuration with ContentObjectRenderer::cObjGetSingle() if there is an array key without and with a dot at the end.

Properties

Methods

resolvePossibleTypoScriptConfiguration()

Parse a configuration with ContentObjectRenderer::cObjGetSingle() and return the result.

public resolvePossibleTypoScriptConfiguration(array $configuration, ServerRequestInterface $request) : array

Parameters

$configuration : array
$request : ServerRequestInterface

Return values

array

resolveTypoScriptConfiguration()

Parse a configuration with ContentObjectRenderer::cObjGetSingle() if there is an array key without and with a dot at the end.

protected resolveTypoScriptConfiguration(array $configuration, ContentObjectRenderer $contentObjectRenderer) : array

This sample would be identified as a TypoScript parsable configuration part:

[ 'example' => 'TEXT' 'example.' => [ 'value' => 'some value' ] ]

Parameters

$configuration : array
$contentObjectRenderer : ContentObjectRenderer

Return values

array
On this page