DatabaseRecordTypeValue implements FormDataProviderInterface

Determine the final TCA type value

Table of Contents

Interfaces

FormDataProviderInterface
Interface must be implemented by form data provider classes.

Methods

addData()  : array<string|int, mixed>
TCA type value depends on several parameters. The simple case is a direct lookup in the database row, which then just needs handling in case the row is a localization overlay.
getDatabaseRow()  : array<string|int, mixed>
Retrieve the requested row from the database

Methods

addData()

TCA type value depends on several parameters. The simple case is a direct lookup in the database row, which then just needs handling in case the row is a localization overlay.

public addData(array<string|int, mixed> $result) : array<string|int, mixed>

More complex is the field:field syntax that can look up the actual value in a different table.

Parameters
$result : array<string|int, mixed>

Initialized result array

Tags
throws
UnexpectedValueException
Return values
array<string|int, mixed>

getDatabaseRow()

Retrieve the requested row from the database

protected getDatabaseRow(string $tableName, int $uid, string $fieldName) : array<string|int, mixed>
Parameters
$tableName : string
$uid : int
$fieldName : string
Return values
array<string|int, mixed>

        
On this page

Search results