function TestEventSubscriberWithPriorities::getSubscribedEvents

Same name in other branches
  1. 8.9.x core/tests/Drupal/Tests/Component/EventDispatcher/ContainerAwareEventDispatcherTest.php \Drupal\Tests\Component\EventDispatcher\TestEventSubscriberWithPriorities::getSubscribedEvents()
  2. 10 core/tests/Drupal/Tests/Component/EventDispatcher/ContainerAwareEventDispatcherTest.php \Drupal\Tests\Component\EventDispatcher\TestEventSubscriberWithPriorities::getSubscribedEvents()
  3. 11.x core/tests/Drupal/Tests/Component/EventDispatcher/ContainerAwareEventDispatcherTest.php \Drupal\Tests\Component\EventDispatcher\TestEventSubscriberWithPriorities::getSubscribedEvents()

File

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

Class

TestEventSubscriberWithPriorities

Namespace

Drupal\Tests\Component\EventDispatcher

Code

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.