class TestEventSubscriberWithMultipleListeners

Hierarchy

Expanded class hierarchy of TestEventSubscriberWithMultipleListeners

File

core/tests/Drupal/Tests/Component/EventDispatcher/ContainerAwareEventDispatcherTest.php, line 647

Namespace

Drupal\Tests\Component\EventDispatcher
View source
class TestEventSubscriberWithMultipleListeners implements EventSubscriberInterface {
  public static function getSubscribedEvents() {
    return [
      'pre.foo' => [
        [
          'preFoo1',
        ],
        [
          'preFoo2',
          10,
        ],
      ],
    ];
  }

}

Members

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

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