You are here

public static function ThumbnailDownloader::create in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/media/src/Plugin/QueueWorker/ThumbnailDownloader.php \Drupal\media\Plugin\QueueWorker\ThumbnailDownloader::create()
  2. 9 core/modules/media/src/Plugin/QueueWorker/ThumbnailDownloader.php \Drupal\media\Plugin\QueueWorker\ThumbnailDownloader::create()

File

core/modules/media/src/Plugin/QueueWorker/ThumbnailDownloader.php, line 48

Class

ThumbnailDownloader
Process a queue of media items to fetch their thumbnails.

Namespace

Drupal\media\Plugin\QueueWorker

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
  return new static($configuration, $plugin_id, $plugin_definition, $container
    ->get('entity_type.manager'));
}