You are here

public static function EventSubscriberInterface::getSubscribedEvents in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/event-dispatcher/EventSubscriberInterface.php \Symfony\Component\EventDispatcher\EventSubscriberInterface::getSubscribedEvents()

Returns an array of event names this subscriber wants to listen to.

The array keys are event names and the value can be:

  • The method name to call (priority defaults to 0)
  • An array composed of the method name to call and the priority
  • An array of arrays composed of the method names to call and respective priorities, or 0 if unset

For instance:

Return value

array The event names to listen to

95 methods override EventSubscriberInterface::getSubscribedEvents()
AcceptNegotiation406::getSubscribedEvents in core/lib/Drupal/Core/EventSubscriber/AcceptNegotiation406.php
Returns an array of event names this subscriber wants to listen to.
AccessDeniedSubscriber::getSubscribedEvents in core/modules/user/src/EventSubscriber/AccessDeniedSubscriber.php
Returns an array of event names this subscriber wants to listen to.
ActiveLinkResponseFilter::getSubscribedEvents in core/lib/Drupal/Core/EventSubscriber/ActiveLinkResponseFilter.php
Returns an array of event names this subscriber wants to listen to.
AddRequestFormatsListener::getSubscribedEvents in vendor/symfony/http-kernel/EventListener/AddRequestFormatsListener.php
Returns an array of event names this subscriber wants to listen to.
AjaxResponseSubscriber::getSubscribedEvents in core/lib/Drupal/Core/EventSubscriber/AjaxResponseSubscriber.php
Returns an array of event names this subscriber wants to listen to.

... See full list

File

vendor/symfony/event-dispatcher/EventSubscriberInterface.php, line 45

Class

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

Namespace

Symfony\Component\EventDispatcher

Code

public static function getSubscribedEvents();