components/ColumnTrait.php
protected function fetchContentOptions($model, $key, $index)
    {
        $options = parent::fetchContentOptions($model, $key, $index);

        if (!empty($this->columnOptions)) {
            foreach ($this->columnOptions as $option => $value) {
                $options['data-column-' . $option] = $value;
            }
        }

        return $options;
    }
protected function fetchContentOptions($model, $key, $index)
    {
        $options = parent::fetchContentOptions($model, $key, $index);

        if (!empty($this->columnOptions)) {
            foreach ($this->columnOptions as $option => $value) {
                $options['data-column-' . $option] = $value;
            }
        }

        return $options;
    }
protected function fetchContentOptions ( $ model , $ key , $ index ) { $ options = parent :: fetchContentOptions ( $ model , $ key , $ index ) ; if ( ! empty ( $ this -> columnOptions ) ) { foreach ( $ this -> columnOptions as $ option => $ value ) { $ options [ 'data-column-' . $ option ] = $ value ; } } return $ options ; }
Parses and fetches updated content options for grid visibility and format

@param mixed $model the data model being rendered
@param mixed $key the key associated with the data model
@param integer $index the zero-based index of the data item among the item array returned by
[[GridView::dataProvider]].

@return array
Parses and fetches updated content options for grid visibility and format