private function createDefaultThumbnails() { // Create only thumbnails for image media
if ($this->type !== self::TYPE_IMAGE
) { return;
} /** @var Manager $generator */
$generator =
Shopware()->
Container()->
get(Manager::
class);
$generator->
createMediaThumbnail($this,
$this->defaultThumbnails, true
);
} /**
* Removes the default thumbnail files. The file name have to be passed, because on update the internal
* file name property is already changed to the new name.
*
* @param string $fileName
*/
private function removeDefaultThumbnails($fileName) { if ($this->type !== self::TYPE_IMAGE
) {