public function MediaThumbnailInterface::createThumbnail in Media Thumbnails 8
Create a thumbnail file using the passed source uri.
Parameters
string $sourceUri: The uri of the source file, like 'public://invoices/inv001.pdf'.
Return value
\Drupal\file\Entity\File|null The new managed file object for the generated thumbnail.
File
- src/
Plugin/ MediaThumbnailInterface.php, line 21
Class
- MediaThumbnailInterface
- Defines an interface for Media thumbnail plugins.
Namespace
Drupal\media_thumbnails\PluginCode
public function createThumbnail($sourceUri);