Symfony\Component\EventDispatcher\EventDispatcherInterface::hasListeners
Checks whether an event has any registered listeners.
Signature
public function hasListeners([string
$eventName = null] )
Parameters
$eventName
— string- The name of the event
Returns
- Boolean
- true if the specified event has any listeners, false otherwise