DatabaseLanguageRows implements FormDataProviderInterface
Read onlyYes
Add language related data to result array
Table of Contents
Interfaces
- FormDataProviderInterface
- Interface must be implemented by form data provider classes.
Methods
- __construct() : mixed
- addData() : array<string|int, mixed>
- Fetch default language if handled record is a localized one, unserialize transOrigDiffSourceField if it is defined, fetch additional languages if requested.
- getRecordWorkspaceOverlay() : array<string|int, mixed>
- Retrieve the requested row from the database
Methods
__construct()
public
__construct(TranslationConfigurationProvider $translationConfigurationProvider) : mixed
Parameters
- $translationConfigurationProvider : TranslationConfigurationProvider
addData()
Fetch default language if handled record is a localized one, unserialize transOrigDiffSourceField if it is defined, fetch additional languages if requested.
public
addData(array<string|int, mixed> $result) : array<string|int, mixed>
Parameters
- $result : array<string|int, mixed>
-
Initialized result array
Tags
Return values
array<string|int, mixed>getRecordWorkspaceOverlay()
Retrieve the requested row from the database
protected
getRecordWorkspaceOverlay(string $tableName, int $uid) : array<string|int, mixed>
Parameters
- $tableName : string
- $uid : int