AfterFlexFormDataStructureParsedEvent¶
New in version 12.0: This event was introduced to replace and improve the method
getDataStructureIdentifierPostProcess()
of the hook
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][FlexFormTools::class]['flexParsing']
.
The PSR-14 event
\TYPO3\CMS\Core\Configuration\Event\AfterFlexFormDataStructureParsedEvent
can be used to control the FlexForm parsing in an
object-oriented approach.
See also
Example¶
Have a look at the combined example.
API¶
- class TYPO3\CMS\Core\Configuration\Event\AfterFlexFormDataStructureParsedEvent¶
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.
- getIdentifier()¶
- Return type
array
- getDataStructure()¶
Returns the current data structure, which has been processed and parsed by the
FlexFormTools
component. Might contain additional data from previously called listeners.- Return type
array
- setDataStructure(array $dataStructure)¶
Allows to modify or completely replace the parsed data structure identifier.
- Parameters
$dataStructure (
array
) -- the dataStructure