class TestEventSubscriberWithPriorities

Hierarchy

Expanded class hierarchy of TestEventSubscriberWithPriorities

File

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

Namespace

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

}

Members

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