‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\Form\NodeExpansion\FieldInformation Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Form\NodeExpansion\FieldInformation:
TYPO3\CMS\Backend\Form\AbstractNode TYPO3\CMS\Backend\Form\NodeInterface

Public Member Functions

 __construct (private readonly NodeFactory $nodeFactory, private readonly DependencyOrderingService $dependencyOrderingService,)
 
array render ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Backend\Form\AbstractNode
 setData (array $data)
 

Additional Inherited Members

- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Backend\Form\AbstractNode
 initializeResultArray ()
 
array mergeChildReturnIntoExistingResult (array $existing, array $childReturn, bool $mergeHtml=true)
 
 getValidationDataAsJsonString (array $config)
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Backend\Form\AbstractNode
array $data = []
 
array $defaultFieldInformation = array( )
 
array $defaultFieldControl = array( )
 
array $defaultFieldWizard = array( )
 

Detailed Description

Field information are additional HTML on a single node level that are typically shown between the label and the main element. They are registered in ['config']['fieldInformation'] TCA section and each element may merge that with default registered information.

Field information must not add additional functionality to the element. They are only allowed to add "informational" stuff like links, div and spans and similar.

Definition at line 32 of file FieldInformation.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Form\NodeExpansion\FieldInformation::__construct ( private readonly NodeFactory  $nodeFactory,
private readonly DependencyOrderingService  $dependencyOrderingService 
)

Definition at line 34 of file FieldInformation.php.

Member Function Documentation

◆ render()

array TYPO3\CMS\Backend\Form\NodeExpansion\FieldInformation::render ( )

Order the list of field information to be rendered with the ordering service, then call each information element through the node factory and merge their results.

Returns
‪array Result array

Reimplemented from TYPO3\CMS\Backend\Form\AbstractNode.

Definition at line 46 of file FieldInformation.php.

References TYPO3\CMS\Backend\Form\AbstractNode\$data, TYPO3\CMS\Backend\Form\AbstractNode\initializeResultArray(), and TYPO3\CMS\Backend\Form\AbstractNode\mergeChildReturnIntoExistingResult().