TcaFlexPrepare implements FormDataProviderInterface
Read onlyYes
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
- __construct() : mixed
- addData() : array<string|int, mixed>
- Resolve flex data structures and prepare flex data values.
- initializeDataStructure() : array<string|int, mixed>
- Fetch / initialize data structure.
- initializeDataValues() : array<string|int, mixed>
- Parse / initialize value from xml string to array
Methods
__construct()
public
__construct(FlexFormTools $flexFormTools, TcaSchemaFactory $tcaSchemaFactory) : mixed
Parameters
- $flexFormTools : FlexFormTools
- $tcaSchemaFactory : TcaSchemaFactory
addData()
Resolve flex data structures and prepare flex data values.
public
addData(array<string|int, mixed> $result) : array<string|int, mixed>
Normalize some details to have aligned array nesting for the rest of the processing method and the render engine.
Parameters
- $result : array<string|int, mixed>
-
Initialized result array
Return values
array<string|int, mixed> —Result filled with more data
initializeDataStructure()
Fetch / initialize data structure.
protected
initializeDataStructure(array<string|int, mixed> $result, string $fieldName) : array<string|int, mixed>
The data structures in ['config']['ds'] is initialized here and the dataStructureIdentifier is set.
Parameters
- $result : array<string|int, mixed>
- $fieldName : string
Return values
array<string|int, mixed>initializeDataValues()
Parse / initialize value from xml string to array
protected
initializeDataValues(array<string|int, mixed> $result, string $fieldName) : array<string|int, mixed>
Parameters
- $result : array<string|int, mixed>
- $fieldName : string