interface MediaThumbnailInterface in Media Thumbnails 8
Defines an interface for Media thumbnail plugins.
Hierarchy
- interface \Drupal\Component\Plugin\PluginInspectionInterface
- interface \Drupal\media_thumbnails\Plugin\MediaThumbnailInterface
Expanded class hierarchy of MediaThumbnailInterface
All classes that implement MediaThumbnailInterface
File
- src/
Plugin/ MediaThumbnailInterface.php, line 10
Namespace
Drupal\media_thumbnails\PluginView source
interface MediaThumbnailInterface extends PluginInspectionInterface {
/**
* Create a thumbnail file using the passed source uri.
*
* @param string $sourceUri
* The uri of the source file, like 'public://invoices/inv001.pdf'.
*
* @return \Drupal\file\Entity\File|null
* The new managed file object for the generated thumbnail.
*/
public function createThumbnail($sourceUri);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MediaThumbnailInterface:: |
public | function | Create a thumbnail file using the passed source uri. | |
PluginInspectionInterface:: |
public | function | Gets the definition of the plugin implementation. | 4 |
PluginInspectionInterface:: |
public | function | Gets the plugin_id of the plugin instance. | 2 |