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
getRecordTitleForDatetimeType()  : string
getRecordTitleForField()  : string
Record title of a single field
getRecordTitleForFolderType()  : string
Return the folder names
getRecordTitleForGroupType()  : string
Return the record title for database records
getRecordTitleForInlineType()  : string
getRecordTitleForPasswordType()  : string
Returns the record title for password fields
getRecordTitleForRadioType()  : string
Return the record title for radio fields
getRecordTitleForSelectType()  : string
Return the record title for database records
getRecordTitleForStandardTextField()  : string
Returns the record title for not transformed 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

getRecordTitleForDatetimeType()

protected getRecordTitleForDatetimeType(mixed $value, array<string|int, mixed> $fieldConfig) : string
Parameters
$value : mixed
$fieldConfig : array<string|int, mixed>
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

getRecordTitleForFolderType()

Return the folder names

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

Current database value of this field

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

getRecordTitleForPasswordType()

Returns the record title for password fields

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

Current database value of this field

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

getRecordTitleForStandardTextField()

Returns the record title for not transformed text fields

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

Current database value of this field

Return values
string

        
On this page

Search results