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() : void
- 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(string $tableName, array<string|int, mixed> $tableConfig, string $fieldName, RelationMap $relationMap) : void
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
- $tableName : string
- $tableConfig : array<string|int, mixed>
- $fieldName : string
- $relationMap : RelationMap