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

Public Member Functions

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

Detailed Description

Fetch the site object containing all information about the current site

Example TypoScript configuration:

10 = TYPO3\CMS\Frontend\DataProcessing\SiteProcessor 10 { as = site }

where "as" names the variable containing the site object

Definition at line 35 of file SiteProcessor.php.

Member Function Documentation

◆ process()

array TYPO3\CMS\Frontend\DataProcessing\SiteProcessor::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 SiteProcessor.php.

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