ImageHelper
class ImageHelper implements ProtectedContextAwareInterface (View source)
Properties
| protected ThumbnailService | $thumbnailService |
Methods
ImageInterface|null
createThumbnail(AssetInterface|null $asset, string|null $preset = null, int|null $width = null, int|null $maximumWidth = null, int|null $height = null, int|null $maximumHeight = null, bool $allowCropping = false, bool $allowUpScaling = false, bool $async = false, int|null $quality = null, string|null $format = null)
Returns a thumbnail of the given asset, allowing integrators to access the thumbnail size and other metadata.
bool
allowsCallOfMethod(string $methodName)
All methods are considered safe
Details
ImageInterface|null
createThumbnail(AssetInterface|null $asset, string|null $preset = null, int|null $width = null, int|null $maximumWidth = null, int|null $height = null, int|null $maximumHeight = null, bool $allowCropping = false, bool $allowUpScaling = false, bool $async = false, int|null $quality = null, string|null $format = null)
Returns a thumbnail of the given asset, allowing integrators to access the thumbnail size and other metadata.
bool
allowsCallOfMethod(string $methodName)
All methods are considered safe