class TestEventSubscriber

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Component/EventDispatcher/ContainerAwareEventDispatcherTest.php \Drupal\Tests\Component\EventDispatcher\TestEventSubscriber
  2. 8.9.x core/tests/Drupal/Tests/Component/EventDispatcher/ContainerAwareEventDispatcherTest.php \Drupal\Tests\Component\EventDispatcher\TestEventSubscriber
  3. 10 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 597

Namespace

Drupal\Tests\Component\EventDispatcher
View source
class TestEventSubscriber implements EventSubscriberInterface {
    public static function getSubscribedEvents() : array {
        return [
            'pre.foo' => 'preFoo',
            'post.foo' => 'postFoo',
        ];
    }

}

Members

Title Sort descending Modifiers Object type Summary
TestEventSubscriber::getSubscribedEvents public static function

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.