\Symfony\Component\EventDispatcherEvent

Event is the base class for classes containing event data.

This class contains no event data. It is used by events that do not pass state information to an event handler when an event is raised.

You can call the method stopPropagation() to abort the execution of further listeners in your event listener.

Summary

Methods
Properties
Constants
isPropagationStopped()
stopPropagation()
setDispatcher()
getDispatcher()
getName()
setName()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$propagationStopped
$dispatcher
$name
N/A

Properties

$propagationStopped

$propagationStopped : boolean

Type

boolean — Whether no further event listeners should be triggered

$name

$name : string

Type

string — This event's name

Methods

isPropagationStopped()

isPropagationStopped() : boolean

Returns whether further event listeners should be triggered.

Returns

boolean —

Whether propagation was already stopped for this event.

stopPropagation()

stopPropagation() 

Stops the propagation of the event to further event listeners.

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

getName()

getName() : string

Gets the event's name.

Returns

string

setName()

setName(string  $name) 

Sets the event's name property.

Parameters

string $name

The event name.