public function Media::updateQueuedThumbnail in Drupal 10
Same name and namespace in other branches
- 8 core/modules/media/src/Entity/Media.php \Drupal\media\Entity\Media::updateQueuedThumbnail()
- 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\EntityCode
public function updateQueuedThumbnail() {
$this
->updateThumbnail(TRUE);
return $this;
}