‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\View\ValueFormatter\FlexFormValueFormatter Class Reference

Public Member Functions

 format (string $tableName, string $fieldName, ?string $value, int $uid, array $fieldConfiguration)
 

Protected Member Functions

array getFlexFormDataStructure (array $tcaConfiguration, string $tableName, string $fieldName, array $record)
 
string renderFlexFormValuePlain (array $processedData, int $currentHierarchy=1)
 
 getSectionHeadline (string $title)
 
 getProcessedSheets (array $dataStructure, array $valueStructure)
 
 getProcessedElements (array $dataStructure, array $valueStructure)
 
 getRelationTable (array $configuration)
 
non empty string null getRelationLabelUserFunction (string $relationTable)
 
 getProcessedSections (array $dataStructure, array $valueStructure)
 
 getElementTitle (string $key, array $structure)
 
 wrapValue (string $value, string $title)
 
 getLanguageService ()
 

Protected Attributes

const VALUE_MAX_LENGTH = 50
 

Detailed Description

The FlexFormValueFormatter formats a FlexForm value into a human-readable format. This is used internally to display changes in FlexForm values as a nicely formatted plain-text diff.

Definition at line 33 of file FlexFormValueFormatter.php.

Member Function Documentation

◆ format()

◆ getElementTitle()

TYPO3\CMS\Backend\View\ValueFormatter\FlexFormValueFormatter::getElementTitle ( string  $key,
array  $structure 
)
protected

◆ getFlexFormDataStructure()

array TYPO3\CMS\Backend\View\ValueFormatter\FlexFormValueFormatter::getFlexFormDataStructure ( array  $tcaConfiguration,
string  $tableName,
string  $fieldName,
array  $record 
)
protected
Parameters
array<string,mixed>‪$tcaConfiguration
string$tableName
string$fieldName
array<string,mixed>‪$record
Returns
‪array

Definition at line 69 of file FlexFormValueFormatter.php.

References TYPO3\CMS\Webhooks\Message\$record.

Referenced by TYPO3\CMS\Backend\View\ValueFormatter\FlexFormValueFormatter\format().

◆ getLanguageService()

TYPO3\CMS\Backend\View\ValueFormatter\FlexFormValueFormatter::getLanguageService ( )
protected

◆ getProcessedElements()

◆ getProcessedSections()

TYPO3\CMS\Backend\View\ValueFormatter\FlexFormValueFormatter::getProcessedSections ( array  $dataStructure,
array  $valueStructure 
)
protected

◆ getProcessedSheets()

TYPO3\CMS\Backend\View\ValueFormatter\FlexFormValueFormatter::getProcessedSheets ( array  $dataStructure,
array  $valueStructure 
)
protected

◆ getRelationLabelUserFunction()

non empty string null TYPO3\CMS\Backend\View\ValueFormatter\FlexFormValueFormatter::getRelationLabelUserFunction ( string  $relationTable)
protected
Parameters
string$relationTable
Returns
‪non-empty-string|null

Definition at line 237 of file FlexFormValueFormatter.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Backend\View\ValueFormatter\FlexFormValueFormatter\getProcessedElements().

◆ getRelationTable()

TYPO3\CMS\Backend\View\ValueFormatter\FlexFormValueFormatter::getRelationTable ( array  $configuration)
protected

◆ getSectionHeadline()

TYPO3\CMS\Backend\View\ValueFormatter\FlexFormValueFormatter::getSectionHeadline ( string  $title)
protected

Get the formatted headline of a FlexForm section

Definition at line 116 of file FlexFormValueFormatter.php.

Referenced by TYPO3\CMS\Backend\View\ValueFormatter\FlexFormValueFormatter\renderFlexFormValuePlain().

◆ renderFlexFormValuePlain()

string TYPO3\CMS\Backend\View\ValueFormatter\FlexFormValueFormatter::renderFlexFormValuePlain ( array  $processedData,
int  $currentHierarchy = 1 
)
protected

◆ wrapValue()

TYPO3\CMS\Backend\View\ValueFormatter\FlexFormValueFormatter::wrapValue ( string  $value,
string  $title 
)
protected

Member Data Documentation

◆ VALUE_MAX_LENGTH

const TYPO3\CMS\Backend\View\ValueFormatter\FlexFormValueFormatter::VALUE_MAX_LENGTH = 50
protected

Definition at line 35 of file FlexFormValueFormatter.php.