RelationMapBuilder
Read onlyYes
FinalYes
Low-level API to parse TCA to find field types which should be processed, as they contain a relation.
This also parses ALL flexforms available, that's why it juggles through all FlexForm fields and parses the FlexForms as well.
Everything is stored in a simple "RelationMap" object with an internal array structure.
not part of TYPO3 API as it should not be exposed, although this is really cool and powerful.
Table of Contents
Methods
- __construct() : mixed
- buildFromStructure() : RelationMap
- addRelationsForFlexFieldToRelationMap() : array<string|int, mixed>
- Adds relations for a flex field to the relation map.
Methods
__construct()
public
__construct(FlexFormTools $flexFormTools) : mixed
Parameters
- $flexFormTools : FlexFormTools
buildFromStructure()
public
buildFromStructure(array<string|int, mixed> $tca) : RelationMap
Parameters
- $tca : array<string|int, mixed>
Return values
RelationMapaddRelationsForFlexFieldToRelationMap()
Adds relations for a flex field to the relation map.
protected
addRelationsForFlexFieldToRelationMap(array<string|int, mixed> $tcaConfig, string $tableName, string $fieldName, RelationMap $relationMap) : array<string|int, mixed>
Note: Inside a section, it is not possible to add a field with a relation (type 'inline', 'file', 'folder', 'group', 'category'). See TcaFlexProcess class for details.
Parameters
- $tcaConfig : array<string|int, mixed>
- $tableName : string
- $fieldName : string
- $relationMap : RelationMap