public function MediaThumbnailManager::updateThumbnail in Media Thumbnails 8
Update a media thumbnail.
Parameters
\Drupal\media\MediaInterface $media: The media object.
File
- src/
Plugin/ MediaThumbnailManager.php, line 108
Class
- MediaThumbnailManager
- Provides the Media thumbnail plugin manager.
Namespace
Drupal\media_thumbnails\PluginCode
public function updateThumbnail(MediaInterface $media) {
$this
->deleteThumbnail($media);
$this
->createThumbnail($media);
}