ActionBeforeEvent
Emitted by ActionExecutor::execute() just before an action runs.
Stoppable: a listener may call ActionBeforeEvent::stopPropagation() to signal intent to short-circuit (reserved for future use — the executor still runs the action today; this event is currently observational).
Synopsis
Section titled “Synopsis”final class ActionBeforeEvent extends StoppableEvent
| Extends | StoppableEvent |
| Source | Event/Lifecycle/ActionBeforeEvent.php |
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
$descriptor | ActionDescriptor | readonly. |
Constructor
Section titled “Constructor”__construct()
Section titled “__construct()”public function __construct(ActionDescriptor $descriptor): mixed
| Parameter | Type | Description |
|---|---|---|
$descriptor | ActionDescriptor |
Returns mixed
Inherited methods
Section titled “Inherited methods”These come from an ancestor and are documented where they are declared.
| Method | Declared in | Description |
|---|---|---|
isPropagationStopped() | StoppableEvent | Whether a listener has already called ActionBeforeEvent::stopPropagation() on this event. |
stopPropagation() | StoppableEvent | Halts propagation so the dispatcher invokes no further listeners for this event. |