public function EventDispatcherInterface::getListeners

Gets the listeners of a specific event or all listeners.

Parameters

string $eventName The name of the event:

Return value

array The event listeners for the specified event, or all event listeners by event name

3 methods override EventDispatcherInterface::getListeners()
EventDispatcher::getListeners in drupal/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php
ImmutableEventDispatcher::getListeners in drupal/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/ImmutableEventDispatcher.php
Gets the listeners of a specific event or all listeners.
TraceableEventDispatcher::getListeners in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Debug/TraceableEventDispatcher.php
Gets the listeners of a specific event or all listeners.

File

drupal/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcherInterface.php, line 86

Class

EventDispatcherInterface
The EventDispatcherInterface is the central point of Symfony's event listener system. Listeners are registered on the manager and events are dispatched through the manager.

Namespace

Symfony\Component\EventDispatcher

Code

public function getListeners($eventName = null);