yii\base\Component::hasEventHandlers PHP Метод

hasEventHandlers() публичный Метод

Returns a value indicating whether there is any handler attached to the named event.
public hasEventHandlers ( string $name ) : boolean
$name string the event name
Результат boolean whether there is any handler attached to the event.
    public function hasEventHandlers($name)
    {
        $this->ensureBehaviors();
        return !empty($this->_events[$name]) || Event::hasHandlers($this, $name);
    }