function EventSubscriber::getSubscribedEvents

Same name in this branch
  1. 8.x drupal/core/vendor/doctrine/common/lib/Doctrine/Common/EventSubscriber.php \Doctrine\Common\EventSubscriber::getSubscribedEvents()
  2. 8.x drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/Debug/TraceableEventDispatcherTest.php \Symfony\Component\HttpKernel\Tests\Debug\EventSubscriber::getSubscribedEvents()

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

Return value

array

1 method overrides EventSubscriber::getSubscribedEvents()
TestEventSubscriber::getSubscribedEvents in drupal/core/vendor/doctrine/common/tests/Doctrine/Tests/Common/EventManagerTest.php
Returns an array of events this subscriber wants to listen to.

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/EventSubscriber.php, line 44

Class

EventSubscriber
An EventSubscriber knows himself what events he is interested in. If an EventSubscriber is added to an EventManager, the manager invokes {@link getSubscribedEvents} and registers the subscriber as a listener for all returned events.

Namespace

Doctrine\Common

Code

function getSubscribedEvents();