yii\widgets\InputWidget::hasModel PHP Метод

hasModel() защищенный Метод

protected hasModel ( ) : boolean
Результат boolean whether this widget is associated with a data model.
    protected function hasModel()
    {
        return $this->model instanceof Model && $this->attribute !== null;
    }
InputWidget