Skip to content

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).

final class ActionBeforeEvent extends StoppableEvent

ExtendsStoppableEvent
SourceEvent/Lifecycle/ActionBeforeEvent.php
PropertyTypeDescription
$descriptorActionDescriptorreadonly.

public function __construct(ActionDescriptor $descriptor): mixed

ParameterTypeDescription
$descriptorActionDescriptor

Returns mixed

These come from an ancestor and are documented where they are declared.

MethodDeclared inDescription
isPropagationStopped()StoppableEventWhether a listener has already called ActionBeforeEvent::stopPropagation() on this event.
stopPropagation()StoppableEventHalts propagation so the dispatcher invokes no further listeners for this event.