public function Generic::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.
Overrides MediaTypeInterface::thumbnail
File
- src/
Plugin/ MediaEntity/ Type/ Generic.php, line 37
Class
- Generic
- Provides generic media type.
Namespace
Drupal\media_entity\Plugin\MediaEntity\TypeCode
public function thumbnail(MediaInterface $media) {
return $this->config
->get('icon_base') . '/generic.png';
}