ContainerAwareEventDispatcherStub
extends EventDispatcher
in package
A stub of Drupal's default ContainerAwareEventDispatcher class.
Table of Contents
Properties
- $stubDispatchedEvents : array<string|int, mixed>
- The array of dispatched events per event name.
Methods
- dispatch() : object
- A proxy function to workaround D10 breaking changes in the interface.
- stubGetDispatchedEvents() : array<string|int, mixed>
- Get the array of dispatched events.
Properties
$stubDispatchedEvents
The array of dispatched events per event name.
protected
array<string|int, mixed>
$stubDispatchedEvents
= []
Methods
dispatch()
A proxy function to workaround D10 breaking changes in the interface.
public
dispatch(object $event[, string|null $eventName = NULL ]) : object
Parameters
- $event : object
- $eventName : string|null = NULL
Return values
objectstubGetDispatchedEvents()
Get the array of dispatched events.
public
stubGetDispatchedEvents() : array<string|int, mixed>
Return values
array<string|int, mixed> —The array of dispatched events per event name.