AfterFlexFormDataStructureParsedEvent

FinalYes

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.

Table of Contents

Methods

__construct()  : mixed
getDataStructure()  : array<string|int, mixed>
Returns the current data structure, which has been processed and parsed by the `FlexFormTools` component. Might contain additional data from previously called listeners.
getIdentifier()  : array<string|int, mixed>
setDataStructure()  : void
Allows to modify or completely replace the parsed data structure identifier.

Methods

__construct()

public __construct(array<string|int, mixed> $dataStructure, array<string|int, mixed> $identifier) : mixed
Parameters
$dataStructure : array<string|int, mixed>
$identifier : array<string|int, mixed>

getDataStructure()

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

public getDataStructure() : array<string|int, mixed>
Return values
array<string|int, mixed>

getIdentifier()

public getIdentifier() : array<string|int, mixed>
Return values
array<string|int, mixed>

setDataStructure()

Allows to modify or completely replace the parsed data structure identifier.

public setDataStructure(array<string|int, mixed> $dataStructure) : void
Parameters
$dataStructure : array<string|int, mixed>

        
On this page

Search results