field; if ($this->columnTemplate instanceof \Closure) { $options = call_user_func($this->columnTemplate, $model); return $options; } else { return str_replace( '{item}', Html::a($model->$fieldName, '#', $this->linkOptions), $this->columnTemplate ); } } }