TcaSchemaBuilder
Read onlyYes
FinalYes
This class builds a TCA schema for a given TCA This is done the following way:
As the relations need to be fully resolved first (done in RelationMapBuilder), the TcaSchemaFactory does two-step processing: 1a. Traverse TCA (and, if type=flex parts are registered), and find relations of all TCA parts pointing to each other 1b. Store this in a RelationMap object as a multi-level array.
- Loop through all TCA tables one by one 2a. Build field objects for the TCA table. 2b. Detect "sub schemata" (if [ctrl][type] is set), build the field objects only relevant for the sub-schema 2c. Build the sub-schema 2d. Build the main schema
Not part of TYPO3's API.
Table of Contents
Methods
Methods
__construct()
public
__construct(RelationMapBuilder $relationMapBuilder, FieldTypeFactory $fieldTypeFactory) : mixed
Parameters
- $relationMapBuilder : RelationMapBuilder
- $fieldTypeFactory : FieldTypeFactory
buildFromStructure()
public
buildFromStructure(array<string|int, mixed> $fullTca) : SchemaCollection
Parameters
- $fullTca : array<string|int, mixed>