Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Media.php

function 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 248

Class

Media
Defines the media entity class.

Namespace

Drupal\media\Entity

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal