You are here

public function EventDispatcherInterface::hasListeners in Zircon Profile 8.0

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

Checks whether an event has any registered listeners.

Parameters

string $eventName The name of the event:

Return value

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

4 methods override EventDispatcherInterface::hasListeners()
ContainerAwareEventDispatcher::hasListeners in core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php
Checks whether an event has any registered listeners.
EventDispatcher::hasListeners in vendor/symfony/event-dispatcher/EventDispatcher.php
Checks whether an event has any registered listeners.
ImmutableEventDispatcher::hasListeners in vendor/symfony/event-dispatcher/ImmutableEventDispatcher.php
Checks whether an event has any registered listeners.
TraceableEventDispatcher::hasListeners in vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php
Checks whether an event has any registered listeners.

File

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

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