‪TYPO3CMS  ‪main
TYPO3\CMS\Frontend\ContentObject\ContentDataProcessor Class Reference

Public Member Functions

 __construct (private readonly ContainerInterface $container, private readonly DataProcessorRegistry $dataProcessorRegistry,)
 
array process (ContentObjectRenderer $cObject, array $configuration, array $variables)
 

Private Member Functions

 getDataProcessor (string $serviceName)
 
 instantiateDataProcessor (string $className)
 

Detailed Description

A class that contains methods that can be used to use the dataProcessing functionality

Definition at line 26 of file ContentDataProcessor.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Frontend\ContentObject\ContentDataProcessor::__construct ( private readonly ContainerInterface  $container,
private readonly DataProcessorRegistry  $dataProcessorRegistry 
)

Definition at line 28 of file ContentDataProcessor.php.

Member Function Documentation

◆ getDataProcessor()

TYPO3\CMS\Frontend\ContentObject\ContentDataProcessor::getDataProcessor ( string  $serviceName)
private

◆ instantiateDataProcessor()

TYPO3\CMS\Frontend\ContentObject\ContentDataProcessor::instantiateDataProcessor ( string  $className)
private

◆ process()

array TYPO3\CMS\Frontend\ContentObject\ContentDataProcessor::process ( ContentObjectRenderer  $cObject,
array  $configuration,
array  $variables 
)

Check for the availability of processors, defined in TypoScript, and use them for data processing

Parameters
array$configuration‪Configuration array
array$variables‪the variables to be processed
Returns
‪array the processed data and variables as key/value store
Exceptions

Definition at line 41 of file ContentDataProcessor.php.

References TYPO3\CMS\Frontend\ContentObject\ContentDataProcessor\getDataProcessor().