function TestEventSubscriber::getSubscribedEvents

File

core/tests/Drupal/Tests/Component/EventDispatcher/ContainerAwareEventDispatcherTest.php, line 630

Class

TestEventSubscriber

Namespace

Drupal\Tests\Component\EventDispatcher

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.