yii\grid\GridView::renderErrors PHP Method

renderErrors() public method

Renders validator errors of filter model.
public renderErrors ( ) : string
return string the rendering result.
    public function renderErrors()
    {
        if ($this->filterModel instanceof Model && $this->filterModel->hasErrors()) {
            return Html::errorSummary($this->filterModel, $this->filterErrorSummaryOptions);
        } else {
            return '';
        }
    }