class ThumbnailPlaceholderService (View source)

Methods

Element
getThumbnailImage(int $width, int $height, string $placeholderBackgroundColor = "#4c4f56")

No description

string
getThumbnailPlaceholder(Version $fileVersion, Version $thumbnailType, array $attributes = [], string $placeholderBackgroundColor = "#4c4f56")

Generates a SVG placeholder graphic with wrapped in an div container that contains all required attributes to swap out this placeholder image by mercure service.

Details

Element getThumbnailImage(int $width, int $height, string $placeholderBackgroundColor = "#4c4f56")

No description

Parameters

int $width
int $height
string $placeholderBackgroundColor

Return Value

Element

string getThumbnailPlaceholder(Version $fileVersion, Version $thumbnailType, array $attributes = [], string $placeholderBackgroundColor = "#4c4f56")

Generates a SVG placeholder graphic with wrapped in an div container that contains all required attributes to swap out this placeholder image by mercure service.

Parameters

Version $fileVersion
Version $thumbnailType
array $attributes
string $placeholderBackgroundColor

Return Value

string