class TestEventSubscriber

Hierarchy

Expanded class hierarchy of TestEventSubscriber

File

drupal/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/Tests/EventDispatcherTest.php, line 292

Namespace

Symfony\Component\EventDispatcher\Tests
View source
class TestEventSubscriber implements EventSubscriberInterface {
  public static function getSubscribedEvents() {
    return array(
      'pre.foo' => 'preFoo',
      'post.foo' => 'postFoo',
    );
  }

}

Members

Namesort descending Modifiers Type Description Overrides
TestEventSubscriber::getSubscribedEvents public static function Returns an array of event names this subscriber wants to listen to. Overrides EventSubscriberInterface::getSubscribedEvents