You are here

public function Video::thumbnail in Media entity video 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.

Overrides MediaTypeInterface::thumbnail

File

src/Plugin/MediaEntity/Type/Video.php, line 83

Class

Video
Provides media type plugin for Video.

Namespace

Drupal\media_entity_video\Plugin\MediaEntity\Type

Code

public function thumbnail(MediaInterface $media) {
  return $this
    ->getDefaultThumbnail();
}