public function TestEventSubscriber::getSubscribedEvents

Same name in this branch
  1. 9.x drupal/core/vendor/doctrine/common/tests/Doctrine/Tests/Common/EventManagerTest.php \Doctrine\Tests\Common\TestEventSubscriber::getSubscribedEvents()
  2. 9.x drupal/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/Tests/EventDispatcherTest.php \Symfony\Component\EventDispatcher\Tests\TestEventSubscriber::getSubscribedEvents()

Returns an array of events this subscriber wants to listen to.

Return value

array

Overrides EventSubscriber::getSubscribedEvents

File

drupal/core/vendor/doctrine/common/tests/Doctrine/Tests/Common/EventManagerTest.php, line 84

Class

TestEventSubscriber

Namespace

Doctrine\Tests\Common

Code

public function getSubscribedEvents() {
  return array(
    'preFoo',
    'postFoo',
  );
}