ThumbnailSupportInterface
interface ThumbnailSupportInterface (View source)
Interface for models which provide methods for thumbnails
Methods
getThumbnail(int $maximumWidth = null, int $maximumHeight = null, string $ratioMode = ImageInterface::RATIOMODE_INSET, bool $allowUpScaling = null)
Returns a thumbnail of this model
mixed
Details
Thumbnail
getThumbnail(int $maximumWidth = null, int $maximumHeight = null, string $ratioMode = ImageInterface::RATIOMODE_INSET, bool $allowUpScaling = null)
Returns a thumbnail of this model
If the maximum width / height is not specified or exceeds the original asset's dimensions, the width / height of the original asset is used.
mixed
addThumbnail(Thumbnail $thumbnail)
Adds a thumbnail which was generated by the ThumbnailService.