class TestEventSubscriberWithPriorities

Hierarchy

Expanded class hierarchy of TestEventSubscriberWithPriorities

File

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

Namespace

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

}

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