/** * @inheritdoc */ protected function renderHeaderCellContent() { if ($this->label !== null) { return $this->label; } if ($this->attribute !== null) { $model = $this->grid->filterModel; return $model->getAttributeLabel($this->attribute); } return parent::renderHeaderCell(); }