InlineOverrideChildTca implements FormDataProviderInterface
Override child TCA in an inline parent child relation.
This basically merges the inline property ['overrideChildTca'] from parent TCA over given child TCA.
Table of Contents
Interfaces
- FormDataProviderInterface
- Interface must be implemented by form data provider classes.
Properties
- $configurationKeysForNotSettableFields : array<string|int, mixed>
- Configuration fields in ctrl section. Their values are field names and if the keys are set in ['ctrl'] section, they are added to the $notSettableFields list and can not be overridden, too.
- $notSettableFields : array<string|int, mixed>
- ['columns'] section child TCA field names that can not be overridden by overrideChildTca from parent.
Methods
- addData() : array<string|int, mixed>
- Inline parent TCA may override some TCA of children.
- generateFieldBlackList() : array<string|int, mixed>
- Add field names defined in ctrl section of child table to black list
- overrideColumns() : array<string|int, mixed>
- Override ['columns'] configuration in child TCA.
- overrideTypes() : array<string|int, mixed>
- Override ['types'] configuration in child TCA
Properties
$configurationKeysForNotSettableFields
Configuration fields in ctrl section. Their values are field names and if the keys are set in ['ctrl'] section, they are added to the $notSettableFields list and can not be overridden, too.
protected
array<string|int, mixed>
$configurationKeysForNotSettableFields
= ['crdate', 'cruser_id', 'delete', 'origUid', 'transOrigDiffSourceField', 'transOrigPointerField', 'tstamp']
$notSettableFields
['columns'] section child TCA field names that can not be overridden by overrideChildTca from parent.
protected
array<string|int, mixed>
$notSettableFields
= ['uid', 'pid', 't3ver_oid', 't3ver_wsid', 't3ver_state', 't3ver_stage']
Methods
addData()
Inline parent TCA may override some TCA of children.
public
addData(array<string|int, mixed> $result) : array<string|int, mixed>
Parameters
- $result : array<string|int, mixed>
-
Main result array
Return values
array<string|int, mixed> —Modified result array
generateFieldBlackList()
Add field names defined in ctrl section of child table to black list
protected
generateFieldBlackList(array<string|int, mixed> $result) : array<string|int, mixed>
Parameters
- $result : array<string|int, mixed>
-
Main result array
Return values
array<string|int, mixed> —Column field names which can not be changed by parent TCA
overrideColumns()
Override ['columns'] configuration in child TCA.
protected
overrideColumns(array<string|int, mixed> $result) : array<string|int, mixed>
Sanitizes that various hard dependencies can not be changed.
Parameters
- $result : array<string|int, mixed>
-
Main result array
Tags
Return values
array<string|int, mixed> —Modified result array
overrideTypes()
Override ['types'] configuration in child TCA
protected
overrideTypes(array<string|int, mixed> $result) : array<string|int, mixed>
Parameters
- $result : array<string|int, mixed>
-
Main result array
Return values
array<string|int, mixed> —Modified result array