‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\Form\FormDataProvider\DatabaseRowDefaultAsReadonly Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Form\FormDataProvider\DatabaseRowDefaultAsReadonly:
TYPO3\CMS\Backend\Form\FormDataProviderInterface

Public Member Functions

 addData (array $result)
 

Detailed Description

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

Definition at line 27 of file DatabaseRowDefaultAsReadonly.php.

Member Function Documentation

◆ addData()

TYPO3\CMS\Backend\Form\FormDataProvider\DatabaseRowDefaultAsReadonly::addData ( array  $result)

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.

Implements TYPO3\CMS\Backend\Form\FormDataProviderInterface.

Definition at line 34 of file DatabaseRowDefaultAsReadonly.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\inList().