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
- Provides media type plugin for Facebook.
Namespace
Drupal\media_entity_facebook\Plugin\MediaEntity\TypeCode
public function thumbnail(MediaInterface $media) {
// @todo Add support for thumbnails on the longrun.
return $this
->getDefaultThumbnail();
}