StoppableEvent
An Event whose propagation a listener can halt.
Once StoppableEvent::stopPropagation() is called, EventDispatcher::dispatch() stops invoking further listeners — the standard PSR-14 stoppable contract.
Synopsis
Section titled “Synopsis”abstract class StoppableEvent extends Event implements StoppableEventInterface
| Extends | Event |
| Implements | StoppableEventInterface |
| Source | Event/StoppableEvent.php |
Methods
Section titled “Methods”| Method | Description |
|---|---|
isPropagationStopped(): bool | Whether a listener has already called StoppableEvent::stopPropagation() on this event. |
stopPropagation(): void | Halts propagation so the dispatcher invokes no further listeners for this event. |
isPropagationStopped()
Section titled “isPropagationStopped()”public function isPropagationStopped(): bool
Whether a listener has already called StoppableEvent::stopPropagation() on this event.
Returns bool
stopPropagation()
Section titled “stopPropagation()”public function stopPropagation(): void
Halts propagation so the dispatcher invokes no further listeners for this event.