You are here

public function EventSubscriber::getSubscribedEvents in Zircon Profile 8

Same name in this branch
  1. 8 vendor/symfony/event-dispatcher/Tests/Debug/TraceableEventDispatcherTest.php \Symfony\Component\EventDispatcher\Tests\Debug\EventSubscriber::getSubscribedEvents()
  2. 8 vendor/doctrine/common/lib/Doctrine/Common/EventSubscriber.php \Doctrine\Common\EventSubscriber::getSubscribedEvents()
  3. 8 core/modules/config/tests/config_import_test/src/EventSubscriber.php \Drupal\config_import_test\EventSubscriber::getSubscribedEvents()
  4. 8 core/modules/config/tests/config_collection_install_test/src/EventSubscriber.php \Drupal\config_collection_install_test\EventSubscriber::getSubscribedEvents()
  5. 8 core/modules/config/tests/config_events_test/src/EventSubscriber.php \Drupal\config_events_test\EventSubscriber::getSubscribedEvents()
Same name and namespace in other branches
  1. 8.0 vendor/doctrine/common/lib/Doctrine/Common/EventSubscriber.php \Doctrine\Common\EventSubscriber::getSubscribedEvents()

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

Return value

array

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

File

vendor/doctrine/common/lib/Doctrine/Common/EventSubscriber.php, line 41

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

public function getSubscribedEvents();