Documentation

SubmitEvent extends FormEvent
in package

FinalYes

This event is dispatched just before the Form::submit() method transforms back the normalized data to the model and view data.

It can be used to change data from the normalized representation of the data.

Table of Contents

Properties

$data  : mixed
$form  : mixed
$propagationStopped  : bool

Methods

__construct()  : mixed
getData()  : mixed
Returns the data associated with this event.
getForm()  : FormInterface
Returns the form at the source of the event.
isPropagationStopped()  : bool
Is propagation stopped?
setData()  : mixed
Allows updating with some filtered data.
stopPropagation()  : void
Stops the propagation of the event to further event listeners.

Properties

$propagationStopped

private bool $propagationStopped = false

Methods

getData()

Returns the data associated with this event.

public getData() : mixed

isPropagationStopped()

Is propagation stopped?

public isPropagationStopped() : bool
Return values
bool

True if the Event is complete and no further listeners should be called. False to continue calling listeners.

setData()

Allows updating with some filtered data.

public setData(mixed $data) : mixed
Parameters
$data : mixed

stopPropagation()

Stops the propagation of the event to further event listeners.

public stopPropagation() : void

If multiple event listeners are connected to the same event, no further event listener will be triggered once any trigger calls stopPropagation().


        
On this page

Search results