function MediaType::thumbnailDownloadsAreQueued

Same name and namespace in other branches
  1. 9 core/modules/media/src/Entity/MediaType.php \Drupal\media\Entity\MediaType::thumbnailDownloadsAreQueued()
  2. 8.9.x core/modules/media/src/Entity/MediaType.php \Drupal\media\Entity\MediaType::thumbnailDownloadsAreQueued()
  3. 10 core/modules/media/src/Entity/MediaType.php \Drupal\media\Entity\MediaType::thumbnailDownloadsAreQueued()

Returns whether thumbnail downloads are queued.

When using remote media sources, the thumbnail generation could be a slow process. Using a queue allows for this process to be handled in the background.

Return value

bool TRUE if thumbnails are queued for download later, FALSE if they should be downloaded now.

Overrides MediaTypeInterface::thumbnailDownloadsAreQueued

File

core/modules/media/src/Entity/MediaType.php, line 190

Class

MediaType
Defines the Media type configuration entity.

Namespace

Drupal\media\Entity

Code

public function thumbnailDownloadsAreQueued() {
  return $this->queue_thumbnail_downloads;
}

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