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

Public Member Functions

 __construct (TypoScriptFrontendController $tsfe=null)
 
array process (ContentObjectRenderer $cObj, array $contentObjectConfiguration, array $processorConfiguration, array $processedData)
 

Protected Member Functions

Site null getCurrentSite ()
 

Protected Attributes

TypoScriptFrontendController $tsfe
 

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 37 of file SiteProcessor.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Frontend\DataProcessing\SiteProcessor::__construct ( TypoScriptFrontendController  $tsfe = null)

Member Function Documentation

◆ getCurrentSite()

Site null TYPO3\CMS\Frontend\DataProcessing\SiteProcessor::getCurrentSite ( )
protected

Returns the currently configured "site" if a site is configured (= resolved) in the current request.

Returns
‪Site|null

Definition at line 65 of file SiteProcessor.php.

Referenced by TYPO3\CMS\Frontend\DataProcessing\SiteProcessor\process().

◆ 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 53 of file SiteProcessor.php.

References TYPO3\CMS\Frontend\DataProcessing\SiteProcessor\getCurrentSite().

Member Data Documentation

◆ $tsfe

TypoScriptFrontendController TYPO3\CMS\Frontend\DataProcessing\SiteProcessor::$tsfe
protected