‪TYPO3CMS  10.4
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

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

Protected Member Functions

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

Additional Inherited Members

- ‪Protected Attributes inherited from ‪TYPO3\CMS\Backend\Form\AbstractNode
NodeFactory $nodeFactory
 
array $data = array( )
 
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 "link popup" button next to the input field of a renderType "inputLink" 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 40 of file FieldControl.php.

Member Function Documentation

◆ getLanguageService()

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

Definition at line 148 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 49 of file FieldControl.php.

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