InitializeProcessedTca implements FormDataProviderInterface
This class is not named properly but will be reworked in the future.
Currently, it is necessary to set the TCA from the outside as it needs to be faked e.g., for edit site configuration. As the formengine handles inline Elements as nested call to itself the TCA and its schema needs to be hold as state.
Tags
Table of Contents
Interfaces
- FormDataProviderInterface
- Interface must be implemented by form data provider classes.
Methods
- __construct() : mixed
- addData() : array<string|int, mixed>
- Add full TCA as copy from vanilla TCA if not already set form the outside Fetch TCA schemata from vanilla TCA if not already set from the outside Add processed TCA as copy from vanilla TCA and sanitize some details
Methods
__construct()
public
__construct(TcaSchemaFactory $tcaSchemaFactory) : mixed
Parameters
- $tcaSchemaFactory : TcaSchemaFactory
addData()
Add full TCA as copy from vanilla TCA if not already set form the outside Fetch TCA schemata from vanilla TCA if not already set from the outside Add processed TCA as copy from vanilla TCA and sanitize some details
public
addData(array<string|int, mixed> $result) : array<string|int, mixed>
Parameters
- $result : array<string|int, mixed>
-
Initialized result array
Return values
array<string|int, mixed> —Result filled with more data