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\HelpersCode
public function getLastEventName() {
end($this->events);
return key($this->events);
}