TcaTypesCtrlOverrides

class \TYPO3\CMS\Backend\Form\FormDataProvider\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

todo

This data provider is just an intermediate solution until FormEngine is using TCA Schema

Table of Contents

Interfaces

FormDataProviderInterface
Interface must be implemented by form data provider classes.

Properties

$allowedCtrlOverrides  : array
List of ctrl properties that can be overridden per type.

Methods

addData()  : array
Add form data to result array

Properties

$allowedCtrlOverrides

List of ctrl properties that can be overridden per type.

protected array $allowedCtrlOverrides = ['title', 'previewRenderer', 'label', 'label_alt', 'label_al…
Show the full value['title', 'previewRenderer', 'label', 'label_alt', 'label_alt_force', 'label_userFunc', 'label_userFunc_options']

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', 'previewRenderer' and the record title properties. Additional properties may be added in the future.

Methods

addData()

Add form data to result array

public addData(array $result) : array

Parameters

$result : array

Initialized result array

Return values

array —

Result filled with more data

On this page