You are here

public function SpyEventDispatcher::getLastEvent in Hook Event Dispatcher 8

Get the last event.

Return value

\Symfony\Component\EventDispatcher\Event Last event.

File

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

Class

SpyEventDispatcher
Class SpyEventDispatcher.

Namespace

Drupal\Tests\hook_event_dispatcher\Unit\Preprocess\Helpers

Code

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