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

Public Member Functions

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

Protected Member Functions

 getLanguageService ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Backend\Form\AbstractNode
 initializeResultArray ()
 
array mergeChildReturnIntoExistingResult (array $existing, array $childReturn, bool $mergeHtml=true)
 
 getValidationDataAsJsonString (array $config)
 

Additional Inherited Members

- ‪Protected Attributes inherited from ‪TYPO3\CMS\Backend\Form\AbstractNode
array $data = []
 
array $defaultFieldInformation = array( )
 
array $defaultFieldControl = array( )
 
array $defaultFieldWizard = array( )
 

Detailed Description

Field controls are additional HTML on a single element level that are typically shown right aside the main element HTML.

They are restricted to only allow an icon as output.

The "edit popup" button next to a select field of a renderType "selectMultipleSideBySide" is an example of such an additional control.

The element itself must position any field controls at an appropriate place. For instance the "group" element shows them in a row vertically, while others display single controls next to each other.

Definition at line 41 of file FieldControl.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 43 of file FieldControl.php.

Member Function Documentation

◆ getLanguageService()

TYPO3\CMS\Backend\Form\NodeExpansion\FieldControl::getLanguageService ( )
protected

Definition at line 141 of file FieldControl.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Backend\Form\NodeExpansion\FieldControl\render().

◆ render()

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

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

Returns
‪array Result array

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

Definition at line 56 of file FieldControl.php.

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