You are here

public function EventDispatcherInterface::getListeners in Zircon Profile 8

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

Gets the listeners of a specific event or all listeners sorted by descending priority.

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

4 methods override EventDispatcherInterface::getListeners()
ContainerAwareEventDispatcher::getListeners in core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php
Gets the listeners of a specific event or all listeners sorted by descending priority.
EventDispatcher::getListeners in vendor/symfony/event-dispatcher/EventDispatcher.php
Gets the listeners of a specific event or all listeners sorted by descending priority.
ImmutableEventDispatcher::getListeners in vendor/symfony/event-dispatcher/ImmutableEventDispatcher.php
Gets the listeners of a specific event or all listeners sorted by descending priority.
TraceableEventDispatcher::getListeners in vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php
Gets the listeners of a specific event or all listeners sorted by descending priority.

File

vendor/symfony/event-dispatcher/EventDispatcherInterface.php, line 78

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);