function Media::updateQueuedThumbnail

Same name in other branches
  1. 9 core/modules/media/src/Entity/Media.php \Drupal\media\Entity\Media::updateQueuedThumbnail()
  2. 10 core/modules/media/src/Entity/Media.php \Drupal\media\Entity\Media::updateQueuedThumbnail()
  3. 11.x 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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.