Example #1
0
 /**
  * @inheritdoc
  */
 protected function renderDataCellContent($model, $key, $index)
 {
     /* @todo use yii params instead of 1 */
     if ($model->primaryKey == 1 || $model->primaryKey == Yii::$app->user->id) {
         return '';
     }
     return parent::renderDataCellContent($model, $key, $index);
 }