DatabaseRecordTypeValue

class \TYPO3\CMS\Backend\Form\FormDataProvider\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
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
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 $result) : array

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

Parameters

$result : array

Initialized result array

Tags

throws
UnexpectedValueException

Return values

array

getDatabaseRow()

Retrieve the requested row from the database

protected getDatabaseRow(string $tableName, int $uid, string $fieldName) : array

Parameters

$tableName : string
$uid : int
$fieldName : string

Return values

array
On this page