‪TYPO3CMS  ‪main
TYPO3\CMS\Frontend\DataProcessing\SiteLanguageProcessor Class Reference
Inheritance diagram for TYPO3\CMS\Frontend\DataProcessing\SiteLanguageProcessor:
TYPO3\CMS\Frontend\ContentObject\DataProcessorInterface

Public Member Functions

array process (ContentObjectRenderer $cObj, array $contentObjectConfiguration, array $processorConfiguration, array $processedData)
 

Detailed Description

Fetch the SiteLanguage object containing all information about the current language

Example TypoScript configuration:

10 = TYPO3\CMS\Frontend\DataProcessing\SiteLanguageProcessor 10 { as = siteLanguage }

where "as" names the variable containing the SiteLanguage properties

Definition at line 35 of file SiteLanguageProcessor.php.

Member Function Documentation

◆ process()

array TYPO3\CMS\Frontend\DataProcessing\SiteLanguageProcessor::process ( ContentObjectRenderer  $cObj,
array  $contentObjectConfiguration,
array  $processorConfiguration,
array  $processedData 
)
Parameters
ContentObjectRenderer$cObj‪The data of the content element or page
array$contentObjectConfiguration‪The configuration of Content Object
array$processorConfiguration‪The configuration of this processor
array$processedData‪Key/value store of processed data (e.g. to be passed to a Fluid View)
Returns
‪array the processed data as key/value store

Implements TYPO3\CMS\Frontend\ContentObject\DataProcessorInterface.

Definition at line 44 of file SiteLanguageProcessor.php.

References TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\getRequest(), and TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\stdWrapValue().