public static function TestEventSubscriber::getSubscribedEvents in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Component/EventDispatcher/ContainerAwareEventDispatcherTest.php \Drupal\Tests\Component\EventDispatcher\TestEventSubscriber::getSubscribedEvents()
- 10 core/tests/Drupal/Tests/Component/EventDispatcher/ContainerAwareEventDispatcherTest.php \Drupal\Tests\Component\EventDispatcher\TestEventSubscriber::getSubscribedEvents()
File
- core/
tests/ Drupal/ Tests/ Component/ EventDispatcher/ ContainerAwareEventDispatcherTest.php, line 624
Class
Namespace
Drupal\Tests\Component\EventDispatcherCode
public static function getSubscribedEvents() {
return [
'pre.foo' => 'preFoo',
'post.foo' => 'postFoo',
];
}