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

Public Member Functions

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

Detailed Description

This data processor converts the XML structure of a given FlexForm field into a fluid readable array.

Options: fieldname - The name of the field containing the FlexForm to be converted as - The variable, the generated array should be assigned to

Example of a minimal TypoScript configuration, which processes the field pi_flexform and assigns the array to the flexFormData variable:

10 = TYPO3\CMS\Frontend\DataProcessing\FlexFormProcessor

Example of an advanced TypoScript configuration, which processes the field my_flexform_field and assigns the array to the myOutputVariable variable:

10 = TYPO3\CMS\Frontend\DataProcessing\FlexFormProcessor 10 { fieldName = my_flexform_field as = myOutputVariable }

Definition at line 48 of file FlexFormProcessor.php.

Member Function Documentation

◆ process()

array TYPO3\CMS\Frontend\DataProcessing\FlexFormProcessor::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 57 of file FlexFormProcessor.php.

References TYPO3\CMS\Frontend\DataProcessing\FlexFormProcessor\processAdditionalDataProcessors().

◆ processAdditionalDataProcessors()

array TYPO3\CMS\Frontend\DataProcessing\FlexFormProcessor::processAdditionalDataProcessors ( array  $data,
array  $processorConfiguration 
)

Recursively process sub processors of a data processor

Parameters
array$data
array$processorConfiguration
Returns
‪array

Definition at line 97 of file FlexFormProcessor.php.

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