function TestEventSubscriberWithPriorities::getSubscribedEvents
File
- 
              core/
tests/ Drupal/ Tests/ Component/ EventDispatcher/ ContainerAwareEventDispatcherTest.php, line 638  
Class
Namespace
Drupal\Tests\Component\EventDispatcherCode
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.