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
todo:

Once processedTca is refactored from its array shape remove keeping the full TCA and TCA schemata as state.

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

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


        
On this page

Search results