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<string|int, mixed>
- 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<string|int, mixed> $result) : array<string|int, mixed>
Parameters
- $result : array<string|int, mixed>
-
Initialized result array
Return values
array<string|int, mixed> —Result filled with more data