You are here

public function Media::updateQueuedThumbnail in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/media/src/Entity/Media.php \Drupal\media\Entity\Media::updateQueuedThumbnail()

Updates the queued thumbnail for the media item.

@internal

@todo If the need arises in contrib, consider making this a public API, by adding an interface that extends MediaInterface.

Return value

\Drupal\media\MediaInterface The updated media item.

File

core/modules/media/src/Entity/Media.php, line 227

Class

Media
Defines the media entity class.

Namespace

Drupal\media\Entity

Code

public function updateQueuedThumbnail() {
  $this
    ->updateThumbnail(TRUE);
  return $this;
}