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
getLanguageService()
protected
getLanguageService() : LanguageService
Return values
LanguageServicegetRecordTitleByLabelProperties()
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
stringgetRecordTitleForDatetimeType()
protected
getRecordTitleForDatetimeType(mixed $value, array<string|int, mixed> $fieldConfig) : string
Parameters
- $value : mixed
- $fieldConfig : array<string|int, mixed>
Return values
stringgetRecordTitleForField()
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
stringgetRecordTitleForFolderType()
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
stringgetRecordTitleForGroupType()
Return the record title for database records
protected
getRecordTitleForGroupType(mixed $value) : string
Parameters
- $value : mixed
-
Current database value of this field
Return values
stringgetRecordTitleForInlineType()
protected
getRecordTitleForInlineType(int $value, array<string|int, mixed> $children) : string
Parameters
- $value : int
- $children : array<string|int, mixed>
Return values
stringgetRecordTitleForPasswordType()
Returns the record title for password fields
protected
getRecordTitleForPasswordType(mixed $value) : string
Parameters
- $value : mixed
-
Current database value of this field
Return values
stringgetRecordTitleForRadioType()
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
stringgetRecordTitleForSelectType()
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
stringgetRecordTitleForStandardTextField()
Returns the record title for not transformed text fields
protected
getRecordTitleForStandardTextField(mixed $value) : string
Parameters
- $value : mixed
-
Current database value of this field