yii\grid\GridView::renderCaption PHP Method

renderCaption() public method

Renders the caption element.
public renderCaption ( ) : boolean | string
return boolean | string the rendered caption element or `false` if no caption element should be rendered.
    public function renderCaption()
    {
        if (!empty($this->caption)) {
            return Html::tag('caption', $this->caption, $this->captionOptions);
        } else {
            return false;
        }
    }