InlineOverrideChildTca
class \
- 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
- 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
- ['columns'] section child TCA field names that can not be overridden by overrideChildTca from parent.
Methods
- addData() : array
- Inline parent TCA may override some TCA of children.
- generateFieldBlackList() : array
- Add field names defined in ctrl section of child table to black list
- overrideColumns() : array
- Override ['columns'] configuration in child TCA.
- overrideTypes() : array
- 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
$configurationKeysForNotSettableFields
= ['crdate', 'delete', 'origUid', 'transOrigDiffSourceField', …Show the full value
['crdate', 'delete', 'origUid', 'transOrigDiffSourceField', 'transOrigPointerField', 'tstamp']
$notSettableFields
['columns'] section child TCA field names that can not be overridden by overrideChildTca from parent.
protected
array
$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 $result) : array
Parameters
- $result : array
-
Main result array
Return values
array —Modified result array
generateFieldBlackList()
Add field names defined in ctrl section of child table to black list
protected
generateFieldBlackList(array $result) : array
Parameters
- $result : array
-
Main result array
Return values
array —Column field names which can not be changed by parent TCA
overrideColumns()
Override ['columns'] configuration in child TCA.
protected
overrideColumns(array $result) : array
Sanitizes that various hard dependencies can not be changed.
Parameters
- $result : array
-
Main result array
Tags
Return values
array —Modified result array
overrideTypes()
Override ['types'] configuration in child TCA
protected
overrideTypes(array $result) : array
Parameters
- $result : array
-
Main result array
Return values
array —Modified result array