public function ImageStylesWarmer::queueWarmUp in Image Style Warmer 8
Queue warm up of images style from a file.
Parameters
\Drupal\file\FileInterface $file: The file for which image styles should be created.
Overrides ImageStylesWarmerInterface::queueWarmUp
Deprecated
Will be removed in upcoming RC release. Please use addQueue() instead.
File
- src/
ImageStylesWarmer.php, line 125
Class
- ImageStylesWarmer
- Defines an images styles warmer.
Namespace
Drupal\image_style_warmerCode
public function queueWarmUp(FileInterface $file) {
$queueImageStyles = $this->config
->get('queue_image_styles');
if (!empty($queueImageStyles)) {
$this
->doWarmUp($file, array_keys($queueImageStyles));
}
}