You are here

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\Plugin

Code

public function updateThumbnail(MediaInterface $media) {
  $this
    ->deleteThumbnail($media);
  $this
    ->createThumbnail($media);
}