TcaFlexPrepare

class \TYPO3\CMS\Backend\Form\FormDataProvider\TcaFlexPrepare

Implements
FormDataProviderInterface

Resolve flex data structure and data values, prepare and normalize.

This is the first data provider in the chain of flex form related providers.

Table of Contents

Interfaces

FormDataProviderInterface
Interface must be implemented by form data provider classes.

Methods

addData()  : array
Resolve flex data structures and prepare flex data values.
initializeDataStructure()  : array
Fetch / initialize data structure.
initializeDataValues()  : array
Parse / initialize value from xml string to array

Methods

addData()

Resolve flex data structures and prepare flex data values.

public addData(array $result) : array

Normalize some details to have aligned array nesting for the rest of the processing method and the render engine.

Parameters

$result : array

Return values

array

initializeDataStructure()

Fetch / initialize data structure.

protected initializeDataStructure(array $result, string $fieldName) : array

The sub array with different possible data structures in ['config']['ds'] is resolved here, ds array contains only the one resolved data structure after this method.

Parameters

$result : array

Result array

$fieldName : string

Currently handled field name

Tags

throws
UnexpectedValueException

Return values

array —

Modified result

initializeDataValues()

Parse / initialize value from xml string to array

protected initializeDataValues(array $result, string $fieldName) : array

Parameters

$result : array

Result array

$fieldName : string

Currently handled field name

Return values

array —

Modified result

On this page