public function ImageStylesPregenerator::__construct in Image Style Warmer 8
Constructs a new ImageStylePregenerator object.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin_id for the plugin instance.
array $plugin_definition: The plugin implementation definition.
\Drupal\Core\Config\Config $image_style_warmer_settings: The image style warmer settings.
\Drupal\Core\Entity\EntityStorageInterface $file_storage: The file storage.
\Drupal\image_style_warmer\ImageStylesWarmerInterface $image_styles_warmer: The image style warmer service.
Overrides PluginBase::__construct
File
- src/
Plugin/ QueueWorker/ ImageStylesPregenerator.php, line 61
Class
- ImageStylesPregenerator
- Executes interface image styles pregeneration queue tasks.
Namespace
Drupal\image_style_warmer\Plugin\QueueWorkerCode
public function __construct(array $configuration, $plugin_id, array $plugin_definition, Config $image_style_warmer_settings, EntityStorageInterface $file_storage, ImageStylesWarmerInterface $image_styles_warmer) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->config = $image_style_warmer_settings;
$this->fileStorage = $file_storage;
$this->imageStylesWarmer = $image_styles_warmer;
}