interface 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.

@author Guilherme Blanco <guilhermeblanco@hotmail.com> @author Jonathan Wage <jonwage@gmail.com> @author Roman Borschel <roman@code-factory.org> @author Bernhard Schussek <bschussek@gmail.com>

@api

Hierarchy

Expanded class hierarchy of EventSubscriberInterface

All classes that implement EventSubscriberInterface

34 files declare their use of EventSubscriberInterface

File

drupal/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventSubscriberInterface.php, line 27

Namespace

Symfony\Component\EventDispatcher
View source

Members

Namesort descending Modifiers Type Description Overrides
EventSubscriberInterface::getSubscribedEvents public static function Returns an array of event names this subscriber wants to listen to. 32