public make ( |
||
$file | file instance | |
Результат |
public function make(File $file)
{
return $this->getHandlerByFile($file)->make($file);
}
/** * Get site representative image * * @return Image */ public function getSiteImage() { if (!$this->image && $this->get('uuid')) { $files = $this->storage->getsByTargetId($this->get('uuid')); if (count($files) > 0) { $file = current($files); $this->image = $this->media->make($file); } } return $this->image; }