You are here

class TestEventSubscriberWithPriorities in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Component/EventDispatcher/ContainerAwareEventDispatcherTest.php \Drupal\Tests\Component\EventDispatcher\TestEventSubscriberWithPriorities

Hierarchy

Expanded class hierarchy of TestEventSubscriberWithPriorities

File

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

Namespace

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

}

Members