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