public function EventDispatcherInterface::hasListeners

Checks whether an event has any registered listeners.

Parameters

string $eventName The name of the event:

Return value

Boolean true if the specified event has any listeners, false otherwise

2 methods override EventDispatcherInterface::hasListeners()
EventDispatcher::hasListeners in drupal/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php
ImmutableEventDispatcher::hasListeners in drupal/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/ImmutableEventDispatcher.php
Checks whether an event has any registered listeners.

File

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

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 hasListeners($eventName = null);