‪TYPO3CMS  ‪main
TYPO3\CMS\Form\Mvc\Configuration\TypoScriptService Class Reference

Public Member Functions

 __construct (CoreTypoScriptService $coreTypoScriptService)
 
 resolvePossibleTypoScriptConfiguration (array $configuration=[])
 

Protected Member Functions

 resolveTypoScriptConfiguration (array $configuration=[])
 
 getTypoScriptFrontendController ()
 

Protected Attributes

CoreTypoScriptService $coreTypoScriptService
 

Detailed Description

Utilities to manage and convert TypoScript

Scope: frontend

Definition at line 28 of file TypoScriptService.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Form\Mvc\Configuration\TypoScriptService::__construct ( CoreTypoScriptService  $coreTypoScriptService)

Member Function Documentation

◆ getTypoScriptFrontendController()

TYPO3\CMS\Form\Mvc\Configuration\TypoScriptService::getTypoScriptFrontendController ( )
protected

◆ resolvePossibleTypoScriptConfiguration()

TYPO3\CMS\Form\Mvc\Configuration\TypoScriptService::resolvePossibleTypoScriptConfiguration ( array  $configuration = [])

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

Definition at line 43 of file TypoScriptService.php.

References TYPO3\CMS\Form\Mvc\Configuration\TypoScriptService\resolveTypoScriptConfiguration().

◆ resolveTypoScriptConfiguration()

TYPO3\CMS\Form\Mvc\Configuration\TypoScriptService::resolveTypoScriptConfiguration ( array  $configuration = [])
protected

Parse a configuration with ContentObjectRenderer::cObjGetSingle() if there is an array key without and with a dot at the end. This sample would be identified as a TypoScript parsable configuration part:

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

Parameters
array$configuration

Definition at line 66 of file TypoScriptService.php.

References TYPO3\CMS\Form\Mvc\Configuration\TypoScriptService\getTypoScriptFrontendController().

Referenced by TYPO3\CMS\Form\Mvc\Configuration\TypoScriptService\resolvePossibleTypoScriptConfiguration().

Member Data Documentation

◆ $coreTypoScriptService

CoreTypoScriptService TYPO3\CMS\Form\Mvc\Configuration\TypoScriptService::$coreTypoScriptService
protected