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

2 calls to TraceableEventDispatcher::getListeners()
TraceableEventDispatcher::getNotCalledListeners in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Debug/TraceableEventDispatcher.php
Gets the not called listeners.
TraceableEventDispatcher::logSkippedListeners in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Debug/TraceableEventDispatcher.php
This is a private method and must not be used.

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Debug/TraceableEventDispatcher.php, line 105

Class

TraceableEventDispatcher
Collects some data about event listeners.

Namespace

Symfony\Component\HttpKernel\Debug

Code

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