class TestEventSubscriberWithPriorities in Drupal 8
Same name and namespace in other branches
- 9 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 580
Namespace
Drupal\Tests\Component\EventDispatcherView source
class TestEventSubscriberWithPriorities implements EventSubscriberInterface {
public static function getSubscribedEvents() {
return [
'pre.foo' => [
'preFoo',
10,
],
'post.foo' => [
'postFoo',
],
];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TestEventSubscriberWithPriorities:: |
public static | function | Returns an array of event names this subscriber wants to listen to. |