interface ImageStylesWarmerInterface in Image Style Warmer 8
Provides an interface defining an image styles warmer.
Hierarchy
- interface \Drupal\image_style_warmer\ImageStylesWarmerInterface
Expanded class hierarchy of ImageStylesWarmerInterface
All classes that implement ImageStylesWarmerInterface
2 files declare their use of ImageStylesWarmerInterface
- ImageStylesPregenerator.php in src/
Plugin/ QueueWorker/ ImageStylesPregenerator.php - ImageStyleWarmer.php in src/
Plugin/ Action/ ImageStyleWarmer.php
File
- src/
ImageStylesWarmerInterface.php, line 10
Namespace
Drupal\image_style_warmerView source
interface ImageStylesWarmerInterface {
/**
* Init warm up with configured image styles for an image file.
*
* @param \Drupal\file\FileInterface $file
* The file for which image styles should be created.
*/
public function warmUp(FileInterface $file);
/**
* Do warm up of image styles for an image file.
*
* @param \Drupal\file\FileInterface $file
* The file for which image styles should be created.
* @param array $image_styles
* List of image styles machine names.
*/
public function doWarmUp(FileInterface $file, array $image_styles);
/**
* Initial warm up of images style from a file.
*
* @param \Drupal\file\FileInterface $file
* The file for which image styles should be created.
*
* @deprecated
* Will be removed in upcoming RC release. Please use doWarmUp() instead.
*/
public function initialWarmUp(FileInterface $file);
/**
* Queue warm up of images style from a file.
*
* @param \Drupal\file\FileInterface $file
* The file for which image styles should be created.
*
* @deprecated
* Will be removed in upcoming RC release. Please use addQueue() instead.
*/
public function queueWarmUp(FileInterface $file);
/**
* Add file and image styles to ImageStylesPregenerator queue.
*
* @param \Drupal\file\FileInterface $file
* The file for which image styles should be created.
* @param array $image_styles
* List of image styles machine names.
*/
public function addQueue(FileInterface $file, array $image_styles);
/**
* Validate file as an image file.
*
* @param \Drupal\file\FileInterface $file
* The file for which image styles should be created.
*/
public function validateImage(FileInterface $file);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ImageStylesWarmerInterface:: |
public | function | Add file and image styles to ImageStylesPregenerator queue. | 1 |
ImageStylesWarmerInterface:: |
public | function | Do warm up of image styles for an image file. | 1 |
ImageStylesWarmerInterface:: |
public | function | Initial warm up of images style from a file. | 1 |
ImageStylesWarmerInterface:: |
public | function | Queue warm up of images style from a file. | 1 |
ImageStylesWarmerInterface:: |
public | function | Validate file as an image file. | 1 |
ImageStylesWarmerInterface:: |
public | function | Init warm up with configured image styles for an image file. | 1 |