src/widgets/AdminBuyerUserWidget.php
public function run()
    {
        if (!$this->user) {
            return '-';
        }

        return (new AdminImagePreviewWidget([
                'image'    => $this->user ? $this->user->image : null,
                'maxWidth' => "25px",
            ]))->run()." ".Html::a($this->user->displayName, \skeeks\cms\helpers\UrlHelper::construct([
                '/shop/admin-buyer-user/update',
                'pk' => $this->user->id,
            ])->enableAdmin(), [
                'data-pjax' => 0,
            ]);
    }
public function run()
    {
        if (!$this->user) {
            return '-';
        }

        return (new AdminImagePreviewWidget([
                'image'    => $this->user ? $this->user->image : null,
                'maxWidth' => "25px",
            ]))->run()." ".Html::a($this->user->displayName, \skeeks\cms\helpers\UrlHelper::construct([
                '/shop/admin-buyer-user/update',
                'pk' => $this->user->id,
            ])->enableAdmin(), [
                'data-pjax' => 0,
            ]);
    }
Подготовка данных для шаблона
@return $this