You are here

public static function TestEventSubscriber::getSubscribedEvents in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Component/EventDispatcher/ContainerAwareEventDispatcherTest.php \Drupal\Tests\Component\EventDispatcher\TestEventSubscriber::getSubscribedEvents()
  2. 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 574

Class

TestEventSubscriber

Namespace

Drupal\Tests\Component\EventDispatcher

Code

public static function getSubscribedEvents() {
  return [
    'pre.foo' => 'preFoo',
    'post.foo' => 'postFoo',
  ];
}