public function getFileInputWidgetPreview() { if ($this->name) { return [Html::img($this->getUrl(), ['class' => 'file-preview-image', 'alt' => $this->alt, 'title' => $this->alt])]; } else { return []; } }