GridView.php
protected function getColumnDataCellContent($column, $model, $key, $index)
    {
        if ($column->content === null) {
            return $this->formatter->format($this->getColumnDataCellValue($column, $model, $key, $index), $column->format);
        } else {
            if ($column->content !== null) {
                return call_user_func($column->content, $model, $key, $index, $column);
            } else {
                return $this->emptyCell;
            }
        }
    }
protected function getColumnDataCellContent($column, $model, $key, $index)
    {
        if ($column->content === null) {
            return $this->formatter->format($this->getColumnDataCellValue($column, $model, $key, $index), $column->format);
        } else {
            if ($column->content !== null) {
                return call_user_func($column->content, $model, $key, $index, $column);
            } else {
                return $this->emptyCell;
            }
        }
    }
protected function getColumnDataCellContent ( $ column , $ model , $ key , $ index ) { if ( $ column -> content === null ) { return $ this -> formatter -> format ( $ this -> getColumnDataCellValue ( $ column , $ model , $ key , $ index ) , $ column -> format ) ; } else { if ( $ column -> content !== null ) { return call_user_func ( $ column -> content , $ model , $ key , $ index , $ column ) ; } else { return $ this -> emptyCell ; } } }
Returns the column data cell content
@param \kartik\grid\DataColumn $column
@param mixed $model the data model being rendered
@param mixed $key the key associated with the data model
@param int $index the zero-based index of the data model among the models array returned by [[GridView::dataProvider]]
@return string the rendering result
Returns the column data cell content