public function ImmutableEventDispatcher::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

Overrides EventDispatcherInterface::getListeners

File

drupal/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/ImmutableEventDispatcher.php, line 80

Class

ImmutableEventDispatcher
A read-only proxy for an event dispatcher.

Namespace

Symfony\Component\EventDispatcher

Code

public function getListeners($eventName = null) {
  return $this->dispatcher
    ->getListeners($eventName);
}