public function EventDispatcher::hasListeners

Overrides EventDispatcherInterface::hasListeners

See also

EventDispatcherInterface::hasListeners

1 call to EventDispatcher::hasListeners()
ContainerAwareEventDispatcher::hasListeners in drupal/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/ContainerAwareEventDispatcher.php
1 method overrides EventDispatcher::hasListeners()
ContainerAwareEventDispatcher::hasListeners in drupal/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/ContainerAwareEventDispatcher.php

File

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

Class

EventDispatcher
The EventDispatcherInterface is the central point of Symfony's event listener system.

Namespace

Symfony\Component\EventDispatcher

Code

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