TcaRecordTitle implements FormDataProviderInterface

Determine the title of a record and write it to $result['recordTitle'].

TCA ctrl fields like label and label_alt are evaluated and their current values from databaseRow used to create the title.

Table of Contents

Interfaces

FormDataProviderInterface
Interface must be implemented by form data provider classes.

Methods

addData()  : array<string|int, mixed>
Enrich the processed record information with the resolved title
getLanguageService()  : LanguageService
getRecordTitleByLabelProperties()  : array<string|int, mixed>
Build the record title from label, label_alt and label_alt_force properties
getRecordTitleForCheckboxType()  : string
Returns the record title for checkbox fields
getRecordTitleForField()  : string
Record title of a single field
getRecordTitleForGroupType()  : string
Return the record title for database records
getRecordTitleForInlineType()  : string
getRecordTitleForInputType()  : string
Returns the record title for input fields
getRecordTitleForRadioType()  : string
Return the record title for radio fields
getRecordTitleForSelectType()  : string
Return the record title for database records
getRecordTitleForTextType()  : string
Returns the record title for text fields

Methods

addData()

Enrich the processed record information with the resolved title

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

Incoming result array

Return values
array<string|int, mixed>

Modified array

getRecordTitleByLabelProperties()

Build the record title from label, label_alt and label_alt_force properties

protected getRecordTitleByLabelProperties(array<string|int, mixed> $result) : array<string|int, mixed>
Parameters
$result : array<string|int, mixed>

Incoming result array

Return values
array<string|int, mixed>

Modified result array

getRecordTitleForCheckboxType()

Returns the record title for checkbox fields

protected getRecordTitleForCheckboxType(mixed $value, array<string|int, mixed> $fieldConfig) : string
Parameters
$value : mixed

Current database value of this field

$fieldConfig : array<string|int, mixed>

TCA field configuration

Return values
string

getRecordTitleForField()

Record title of a single field

protected getRecordTitleForField(string $fieldName, array<string|int, mixed> $result) : string
Parameters
$fieldName : string

Field to handle

$result : array<string|int, mixed>

Incoming result array

Return values
string

getRecordTitleForGroupType()

Return the record title for database records

protected getRecordTitleForGroupType(mixed $value) : string
Parameters
$value : mixed

Current database value of this field

Return values
string

getRecordTitleForInlineType()

protected getRecordTitleForInlineType(int $value, array<string|int, mixed> $children) : string
Parameters
$value : int
$children : array<string|int, mixed>
Return values
string

getRecordTitleForInputType()

Returns the record title for input fields

protected getRecordTitleForInputType(mixed $value, array<string|int, mixed> $fieldConfig) : string
Parameters
$value : mixed

Current database value of this field

$fieldConfig : array<string|int, mixed>

TCA field configuration

Return values
string

getRecordTitleForRadioType()

Return the record title for radio fields

protected getRecordTitleForRadioType(mixed $value, array<string|int, mixed> $fieldConfig) : string
Parameters
$value : mixed

Current database value of this field

$fieldConfig : array<string|int, mixed>

TCA field configuration

Return values
string

getRecordTitleForSelectType()

Return the record title for database records

protected getRecordTitleForSelectType(mixed $value, array<string|int, mixed> $fieldConfig) : string
Parameters
$value : mixed

Current database value of this field

$fieldConfig : array<string|int, mixed>

TCA field configuration

Return values
string

getRecordTitleForTextType()

Returns the record title for text fields

protected getRecordTitleForTextType(mixed $value) : string
Parameters
$value : mixed

Current database value of this field

Return values
string

        
On this page

Search results