You are here

public static function TestEventSubscriberWithPriorities::getSubscribedEvents in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Component/EventDispatcher/ContainerAwareEventDispatcherTest.php \Drupal\Tests\Component\EventDispatcher\TestEventSubscriberWithPriorities::getSubscribedEvents()
  2. 9 core/tests/Drupal/Tests/Component/EventDispatcher/ContainerAwareEventDispatcherTest.php \Drupal\Tests\Component\EventDispatcher\TestEventSubscriberWithPriorities::getSubscribedEvents()

File

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

Class

TestEventSubscriberWithPriorities

Namespace

Drupal\Tests\Component\EventDispatcher

Code

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