class TestEventSubscriberWithPriorities
Same name in other branches
- 9 core/tests/Drupal/Tests/Component/EventDispatcher/ContainerAwareEventDispatcherTest.php \Drupal\Tests\Component\EventDispatcher\TestEventSubscriberWithPriorities
- 8.9.x core/tests/Drupal/Tests/Component/EventDispatcher/ContainerAwareEventDispatcherTest.php \Drupal\Tests\Component\EventDispatcher\TestEventSubscriberWithPriorities
- 11.x core/tests/Drupal/Tests/Component/EventDispatcher/ContainerAwareEventDispatcherTest.php \Drupal\Tests\Component\EventDispatcher\TestEventSubscriberWithPriorities
Hierarchy
- class \Drupal\Tests\Component\EventDispatcher\TestEventSubscriberWithPriorities implements \Symfony\Component\EventDispatcher\EventSubscriberInterface
Expanded class hierarchy of TestEventSubscriberWithPriorities
File
-
core/
tests/ Drupal/ Tests/ Component/ EventDispatcher/ ContainerAwareEventDispatcherTest.php, line 605
Namespace
Drupal\Tests\Component\EventDispatcherView source
class TestEventSubscriberWithPriorities implements EventSubscriberInterface {
public static function getSubscribedEvents() : array {
return [
'pre.foo' => [
'preFoo',
10,
],
'post.foo' => [
'postFoo',
],
];
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
TestEventSubscriberWithPriorities::getSubscribedEvents | public static | function |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.