function ThumbnailDownloader::create

Same name in other branches
  1. 8.9.x core/modules/media/src/Plugin/QueueWorker/ThumbnailDownloader.php \Drupal\media\Plugin\QueueWorker\ThumbnailDownloader::create()
  2. 10 core/modules/media/src/Plugin/QueueWorker/ThumbnailDownloader.php \Drupal\media\Plugin\QueueWorker\ThumbnailDownloader::create()
  3. 11.x core/modules/media/src/Plugin/QueueWorker/ThumbnailDownloader.php \Drupal\media\Plugin\QueueWorker\ThumbnailDownloader::create()

Overrides ContainerFactoryPluginInterface::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'));
}

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