You are here

public function SpyEventDispatcher::getLastEventName in Hook Event Dispatcher 8

Get the last event name.

Return value

string Last event name.

File

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

Class

SpyEventDispatcher
Class SpyEventDispatcher.

Namespace

Drupal\Tests\hook_event_dispatcher\Unit\Preprocess\Helpers

Code

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