name == "administrator" && $haveRoot) return ""; return ""; }; } public static function rows($type, $bigSize = false) { return function($model, $index, $widget, $grid) use ($type, $bigSize) { return [ "ondblclick" => "common.form(this, '{$type}', {$bigSize});", "style" => "cursor: pointer;", "data" => [ "href" => Url::to(["update", "name" => $model->name]) ] ]; }; } }