Drupal Test Helpers module API documentation - release 1.5.0

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

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
object

stubGetDispatchedEvents()

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.


        
On this page

Search results