You are here

public function MediaTypeInterface::thumbnail in Media entity 8

Gets thumbnail image.

Media type plugin is responsible for returning URI of the generic thumbnail if no other is available. This functions should always return a valid URI.

Parameters

MediaInterface $media: Media.

Return value

string URI of the thumbnail.

1 method overrides MediaTypeInterface::thumbnail()
Generic::thumbnail in src/Plugin/MediaEntity/Type/Generic.php
Gets thumbnail image.

File

src/MediaTypeInterface.php, line 63

Class

MediaTypeInterface
Defines the interface for media types.

Namespace

Drupal\media_entity

Code

public function thumbnail(MediaInterface $media);