‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Configuration\Event\AfterFlexFormDataStructureParsedEvent Class Reference

Public Member Functions

 __construct (private array $dataStructure, private readonly array $identifier,)
 
 getIdentifier ()
 
 getDataStructure ()
 
 setDataStructure (array $dataStructure)
 

Detailed Description

Listeners to this event are able to modify or enhance a flex form data structure that corresponds to a given identifier, after it was parsed and before it is used by further components.

Note: Since this event is not stoppable, all registered listeners are called. Therefore, you might want to namespace your identifiers in a way, that there is little chance they overlap (e.g. prefix with extension name).

See the note on FlexFormTools regarding the schema of $dataStructure.

Definition at line 31 of file AfterFlexFormDataStructureParsedEvent.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Configuration\Event\AfterFlexFormDataStructureParsedEvent::__construct ( private array  $dataStructure,
private readonly array  $identifier 
)

Definition at line 33 of file AfterFlexFormDataStructureParsedEvent.php.

Member Function Documentation

◆ getDataStructure()

TYPO3\CMS\Core\Configuration\Event\AfterFlexFormDataStructureParsedEvent::getDataStructure ( )

Returns the current data structure, which has been processed and parsed by the FlexFormTools component. Might contain additional data from previously called listeners.

Definition at line 48 of file AfterFlexFormDataStructureParsedEvent.php.

Referenced by TYPO3\CMS\Form\EventListener\DataStructureIdentifierListener\modifyDataStructure().

◆ getIdentifier()

TYPO3\CMS\Core\Configuration\Event\AfterFlexFormDataStructureParsedEvent::getIdentifier ( )

◆ setDataStructure()

TYPO3\CMS\Core\Configuration\Event\AfterFlexFormDataStructureParsedEvent::setDataStructure ( array  $dataStructure)