class TestEventSubscriber in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Component/EventDispatcher/ContainerAwareEventDispatcherTest.php \Drupal\Tests\Component\EventDispatcher\TestEventSubscriber
Hierarchy
- class \Drupal\Tests\Component\EventDispatcher\TestEventSubscriber implements \Symfony\Component\EventDispatcher\EventSubscriberInterface
Expanded class hierarchy of TestEventSubscriber
File
- core/
tests/ Drupal/ Tests/ Component/ EventDispatcher/ ContainerAwareEventDispatcherTest.php, line 622
Namespace
Drupal\Tests\Component\EventDispatcherView source
class TestEventSubscriber implements EventSubscriberInterface {
public static function getSubscribedEvents() {
return [
'pre.foo' => 'preFoo',
'post.foo' => 'postFoo',
];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TestEventSubscriber:: |
public static | function |