public function EventManager::getListeners

Gets the listeners of a specific event or all listeners.

Parameters

string $event The name of the event.:

Return value

array The event listeners for the specified event, or all event listeners.

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/EventManager.php, line 73

Class

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

Namespace

Doctrine\Common

Code

public function getListeners($event = null) {
  return $event ? $this->_listeners[$event] : $this->_listeners;
}