‪TYPO3CMS  10.4
TYPO3\CMS\Backend\Form\FormDataProvider\TcaRecordTitle Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Form\FormDataProvider\TcaRecordTitle:
TYPO3\CMS\Backend\Form\FormDataProviderInterface

Public Member Functions

array addData (array $result)
 

Protected Member Functions

array getRecordTitleByLabelProperties (array $result)
 
string getRecordTitleForField ($fieldName, $result)
 
string getRecordTitleForRadioType ($value, $fieldConfig)
 
string getRecordTitleForInlineType ($value, array $children)
 
string getRecordTitleForSelectType ($value, $fieldConfig)
 
string getRecordTitleForGroupType ($value)
 
string getRecordTitleForCheckboxType ($value, $fieldConfig)
 
string getRecordTitleForInputType ($value, $fieldConfig)
 
string getRecordTitleForTextType ($value)
 
LanguageService getLanguageService ()
 

Detailed Description

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.

Definition at line 30 of file TcaRecordTitle.php.

Member Function Documentation

◆ addData()

array TYPO3\CMS\Backend\Form\FormDataProvider\TcaRecordTitle::addData ( array  $result)

Enrich the processed record information with the resolved title

Parameters
array$result‪Incoming result array
Returns
‪array Modified array

Implements TYPO3\CMS\Backend\Form\FormDataProviderInterface.

Definition at line 38 of file TcaRecordTitle.php.

References TYPO3\CMS\Backend\Form\FormDataProvider\TcaRecordTitle\getRecordTitleByLabelProperties(), and TYPO3\CMS\Backend\Form\FormDataProvider\TcaRecordTitle\getRecordTitleForField().

◆ getLanguageService()

LanguageService TYPO3\CMS\Backend\Form\FormDataProvider\TcaRecordTitle::getLanguageService ( )
protected

◆ getRecordTitleByLabelProperties()

array TYPO3\CMS\Backend\Form\FormDataProvider\TcaRecordTitle::getRecordTitleByLabelProperties ( array  $result)
protected

Build the record title from label, label_alt and label_alt_force properties

Parameters
array$result‪Incoming result array
Returns
‪array Modified result array

Definition at line 97 of file TcaRecordTitle.php.

References TYPO3\CMS\Backend\Form\FormDataProvider\TcaRecordTitle\getRecordTitleForField(), and TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode().

Referenced by TYPO3\CMS\Backend\Form\FormDataProvider\TcaRecordTitle\addData().

◆ getRecordTitleForCheckboxType()

string TYPO3\CMS\Backend\Form\FormDataProvider\TcaRecordTitle::getRecordTitleForCheckboxType (   $value,
  $fieldConfig 
)
protected

Returns the record title for checkbox fields

Parameters
mixed$value‪Current database value of this field
array$fieldConfig‪TCA field configuration
Returns
‪string

Definition at line 282 of file TcaRecordTitle.php.

References TYPO3\CMS\Backend\Form\FormDataProvider\TcaRecordTitle\getLanguageService().

Referenced by TYPO3\CMS\Backend\Form\FormDataProvider\TcaRecordTitle\getRecordTitleForField().

◆ getRecordTitleForField()

◆ getRecordTitleForGroupType()

string TYPO3\CMS\Backend\Form\FormDataProvider\TcaRecordTitle::getRecordTitleForGroupType (   $value)
protected

Return the record title for database records

Parameters
mixed$value‪Current database value of this field
Returns
‪string

Definition at line 260 of file TcaRecordTitle.php.

Referenced by TYPO3\CMS\Backend\Form\FormDataProvider\TcaRecordTitle\getRecordTitleForField().

◆ getRecordTitleForInlineType()

string TYPO3\CMS\Backend\Form\FormDataProvider\TcaRecordTitle::getRecordTitleForInlineType (   $value,
array  $children 
)
protected
Parameters
int$value
array$children
Returns
‪string

Definition at line 214 of file TcaRecordTitle.php.

Referenced by TYPO3\CMS\Backend\Form\FormDataProvider\TcaRecordTitle\getRecordTitleForField().

◆ getRecordTitleForInputType()

string TYPO3\CMS\Backend\Form\FormDataProvider\TcaRecordTitle::getRecordTitleForInputType (   $value,
  $fieldConfig 
)
protected

◆ getRecordTitleForRadioType()

string TYPO3\CMS\Backend\Form\FormDataProvider\TcaRecordTitle::getRecordTitleForRadioType (   $value,
  $fieldConfig 
)
protected

Return the record title for radio fields

Parameters
mixed$value‪Current database value of this field
array$fieldConfig‪TCA field configuration
Returns
‪string

Definition at line 195 of file TcaRecordTitle.php.

Referenced by TYPO3\CMS\Backend\Form\FormDataProvider\TcaRecordTitle\getRecordTitleForField().

◆ getRecordTitleForSelectType()

string TYPO3\CMS\Backend\Form\FormDataProvider\TcaRecordTitle::getRecordTitleForSelectType (   $value,
  $fieldConfig 
)
protected

Return the record title for database records

Parameters
mixed$value‪Current database value of this field
array$fieldConfig‪TCA field configuration
Returns
‪string

Definition at line 232 of file TcaRecordTitle.php.

Referenced by TYPO3\CMS\Backend\Form\FormDataProvider\TcaRecordTitle\getRecordTitleForField().

◆ getRecordTitleForTextType()

string TYPO3\CMS\Backend\Form\FormDataProvider\TcaRecordTitle::getRecordTitleForTextType (   $value)
protected

Returns the record title for text fields

Parameters
mixed$value‪Current database value of this field
Returns
‪string

Definition at line 378 of file TcaRecordTitle.php.

Referenced by TYPO3\CMS\Backend\Form\FormDataProvider\TcaRecordTitle\getRecordTitleForField().