DatabaseRowDefaultAsReadonly

class \TYPO3\CMS\Backend\Form\FormDataProvider\DatabaseRowDefaultAsReadonly

Implements
FormDataProviderInterface

Special data provider for replacing a database field with the value of the default record in case "l10n_display" is set to "defaultAsReadonly".

Table of Contents

Interfaces

FormDataProviderInterface
Interface must be implemented by form data provider classes.

Methods

addData()  : array
Check each field for being an overlay, having l10n_display set to defaultAsReadonly and whether the field exists in the default language row. If so, the current database value will be replaced by the one from the default language row.

Methods

addData()

Check each field for being an overlay, having l10n_display set to defaultAsReadonly and whether the field exists in the default language row. If so, the current database value will be replaced by the one from the default language row.

public addData(array $result) : array

Parameters

$result : array

Initialized result array

Return values

array —

Result filled with more data

On this page