class IconThumbnailGenerator extends AbstractThumbnailGenerator (View source)

A generic thumbnail generator to get Icon of the given document

Properties

protected Environment $environment from  AbstractThumbnailGenerator
protected ImagineInterface $imagineService from  AbstractThumbnailGenerator
protected ResourceManager $resourceManager from  AbstractThumbnailGenerator
static protected int $priority

The priority for this thumbnail generator.

protected array $options from  AbstractThumbnailGenerator
protected ImageService $imageService

Methods

static int
getPriority()

No description

mixed
getOption(string $key)

No description

bool
canRefresh(Thumbnail $thumbnail)

No description

bool
isExtensionSupported(Thumbnail $thumbnail)

No description

void
refresh(Thumbnail $thumbnail)

No description

Details

static int getPriority()

No description

Return Value

int

protected mixed getOption(string $key)

No description

Parameters

string $key

Return Value

mixed

Exceptions

Exception

bool canRefresh(Thumbnail $thumbnail)

No description

Parameters

Thumbnail $thumbnail

Return Value

bool

true if this ThumbnailGenerator can convert the given thumbnail, false otherwise.

protected bool isExtensionSupported(Thumbnail $thumbnail)

No description

Parameters

Thumbnail $thumbnail

Return Value

bool

void refresh(Thumbnail $thumbnail)

No description

Parameters

Thumbnail $thumbnail

Return Value

void

Exceptions

NoThumbnailAvailableException