public function SpyEventDispatcher::getEvents in Hook Event Dispatcher 3.x
Same name and namespace in other branches
- 8.2 modules/preprocess_event_dispatcher/tests/src/Unit/Helpers/SpyEventDispatcher.php \Drupal\Tests\preprocess_event_dispatcher\Unit\Helpers\SpyEventDispatcher::getEvents()
Get the events keyed by event name.
Return value
\Symfony\Component\EventDispatcher\Event[] Events keyed by event name.
File
- modules/
preprocess_event_dispatcher/ tests/ src/ Unit/ Helpers/ SpyEventDispatcher.php, line 82
Class
- SpyEventDispatcher
- Class SpyEventDispatcher.
Namespace
Drupal\Tests\preprocess_event_dispatcher\Unit\HelpersCode
public function getEvents() : array {
return $this->events;
}