FlexFormProcessor

class \TYPO3\CMS\Frontend\DataProcessing\FlexFormProcessor

Implements
DataProcessorInterface

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 }

Table of Contents

Interfaces

DataProcessorInterface
Interface for data processor classes processing data from ContentObjectRenderer, used e.g. with the FLUIDTEMPLATE content object

Methods

process()  : array
Process content object data
processAdditionalDataProcessors()  : array
Recursively process sub processors of a data processor

Methods

process()

Process content object data

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

Parameters

$cObj : ContentObjectRenderer

The data of the content element or page

$contentObjectConfiguration : array

The configuration of Content Object

$processorConfiguration : array

The configuration of this processor

$processedData : array

Key/value store of processed data (e.g. to be passed to a Fluid View)

Return values

array —

the processed data as key/value store

processAdditionalDataProcessors()

Recursively process sub processors of a data processor

public processAdditionalDataProcessors(array $data, array $processorConfiguration) : array

Parameters

$data : array
$processorConfiguration : array

Return values

array
On this page