‪TYPO3CMS  ‪main
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)
 
 getRecordTitleForFolderType (array $value)
 
string getRecordTitleForCheckboxType ($value, $fieldConfig)
 
 getRecordTitleForStandardTextField (mixed $value)
 
 getRecordTitleForDatetimeType (mixed $value, array $fieldConfig)
 
 getRecordTitleForPasswordType (mixed $value)
 
 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()

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 306 of file TcaRecordTitle.php.

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

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

◆ getRecordTitleForDatetimeType()

TYPO3\CMS\Backend\Form\FormDataProvider\TcaRecordTitle::getRecordTitleForDatetimeType ( mixed  $value,
array  $fieldConfig 
)
protected

◆ getRecordTitleForField()

◆ getRecordTitleForFolderType()

TYPO3\CMS\Backend\Form\FormDataProvider\TcaRecordTitle::getRecordTitleForFolderType ( array  $value)
protected

Return the folder names

Parameters
array$value‪Current database value of this field

Definition at line 290 of file TcaRecordTitle.php.

Referenced by TYPO3\CMS\Backend\Form\FormDataProvider\TcaRecordTitle\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 276 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
Returns
‪string

Definition at line 230 of file TcaRecordTitle.php.

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

◆ getRecordTitleForPasswordType()

TYPO3\CMS\Backend\Form\FormDataProvider\TcaRecordTitle::getRecordTitleForPasswordType ( mixed  $value)
protected

Returns the record title for password fields

Parameters
mixed$value‪Current database value of this field

Definition at line 406 of file TcaRecordTitle.php.

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

◆ 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 213 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 248 of file TcaRecordTitle.php.

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

◆ getRecordTitleForStandardTextField()

TYPO3\CMS\Backend\Form\FormDataProvider\TcaRecordTitle::getRecordTitleForStandardTextField ( mixed  $value)
protected

Returns the record title for not transformed text fields

Parameters
mixed$value‪Current database value of this field

Definition at line 330 of file TcaRecordTitle.php.

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