Exemplo n.º 1
0
 /**
  * @see Object\ClassDefinition\Data::getVersionPreview
  * @param Asset\Image $data
  * @return string
  */
 public function getVersionPreview($data)
 {
     if ($data instanceof Object\Data\Hotspotimage && $data->getImage() instanceof Asset\Image) {
         return '<img src="/admin/asset/get-image-thumbnail/id/' . $data->getImage()->getId() . '/width/100/height/100/aspectratio/true" />';
     }
 }