TcaTypesCtrlOverrides implements FormDataProviderInterface
Merge type-specific ctrl configuration from the types section into processedTca ctrl section.
This allows tables to define type-specific ctrl properties in the types section that override the global ctrl values for that specific record type.
Tags
Table of Contents
Interfaces
- FormDataProviderInterface
- Interface must be implemented by form data provider classes.
Properties
- $allowedCtrlOverrides : array<string|int, mixed>
- List of ctrl properties that can be overridden per type.
Methods
- addData() : array<string|int, mixed>
- Add form data to result array
Properties
$allowedCtrlOverrides
List of ctrl properties that can be overridden per type.
protected
array<string|int, mixed>
$allowedCtrlOverrides
= ['title', 'previewRenderer']
This prevents arbitrary ctrl properties from being overridden which might cause issues if they affect the structure or behavior of TCA processing.
Currently supported: 'title' and 'previewRenderer'. Additional properties may be added in the future.
Methods
addData()
Add form data to result array
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