TcaRecordTitle

class \TYPO3\CMS\Backend\Form\FormDataProvider\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
Enrich the processed record information with the resolved title
getLanguageService()  : LanguageService
getRecordTitleByLabelProperties()  : array
Build the record title from label, label_alt and label_alt_force properties
getRecordTitleForCheckboxType()  : string
Returns the record title for checkbox fields
getRecordTitleForCountryType()  : string
Return the record title for database records of type "country"
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 $result) : array

Parameters

$result : array

Incoming result array

Return values

array —

Modified array

getRecordTitleByLabelProperties()

Build the record title from label, label_alt and label_alt_force properties

protected getRecordTitleByLabelProperties(array $result) : array

Parameters

$result : array

Incoming result array

Return values

array —

Modified result array

getRecordTitleForCheckboxType()

Returns the record title for checkbox fields

protected getRecordTitleForCheckboxType(mixed $value, array $fieldConfig) : string

Parameters

$value : mixed

Current database value of this field

$fieldConfig : array

TCA field configuration

Return values

string

getRecordTitleForCountryType()

Return the record title for database records of type "country"

protected getRecordTitleForCountryType(mixed $value, array $result, string $fieldName) : string

Parameters

$value : mixed

Current database value of this field

$result : array

Incoming result array

$fieldName : string

Field to handle

Return values

string

getRecordTitleForDatetimeType()

protected getRecordTitleForDatetimeType(DateTimeInterface|null $datetime, array $fieldConfig) : string

Parameters

$datetime : DateTimeInterface|null
$fieldConfig : array

Return values

string

getRecordTitleForField()

Record title of a single field

protected getRecordTitleForField(string $fieldName, array $result) : string

Parameters

$fieldName : string

Field to handle

$result : array

Incoming result array

Return values

string

getRecordTitleForFolderType()

Return the folder names

protected getRecordTitleForFolderType(array $value) : string

Parameters

$value : array

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 $children) : string

Parameters

$value : int
$children : array

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 $fieldConfig) : string

Parameters

$value : mixed

Current database value of this field

$fieldConfig : array

TCA field configuration

Return values

string

getRecordTitleForSelectType()

Return the record title for database records

protected getRecordTitleForSelectType(mixed $value, array $fieldConfig) : string

Parameters

$value : mixed

Current database value of this field

$fieldConfig : array

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