You are here

public function Facebook::thumbnail in Media entity facebook 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/Facebook.php, line 229

Class

Facebook
Provides media type plugin for Facebook.

Namespace

Drupal\media_entity_facebook\Plugin\MediaEntity\Type

Code

public function thumbnail(MediaInterface $media) {

  // @todo Add support for thumbnails on the longrun.
  return $this
    ->getDefaultThumbnail();
}