You are here

public function SpyEventDispatcher::getEvents in Hook Event Dispatcher 8

Get the events keyed by event name.

Return value

\Symfony\Component\EventDispatcher\Event[] Events keyed by event name.

File

tests/src/Unit/Preprocess/Helpers/SpyEventDispatcher.php, line 82

Class

SpyEventDispatcher
Class SpyEventDispatcher.

Namespace

Drupal\Tests\hook_event_dispatcher\Unit\Preprocess\Helpers

Code

public function getEvents() {
  return $this->events;
}