‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\Form\NodeExpansion\FieldWizard Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Form\NodeExpansion\FieldWizard:
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 wizards are additional HTML on a single element level that are typically shown below the element input. They are registered in ['config']['fieldWizard'] TCA section and each element may merge that with default wizards.

Field wizards may add additional functionality to the element. They could add new ajax controllers for instance or add buttons and are not restricted by the framework further.

Examples for field wizards are the display of the "language diff" in input elements and the file upload button in group elements.

Definition at line 36 of file FieldWizard.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 38 of file FieldWizard.php.

Member Function Documentation

◆ render()

array TYPO3\CMS\Backend\Form\NodeExpansion\FieldWizard::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 50 of file FieldWizard.php.

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