function image_style_warmer_file_update in Image Style Warmer 8
Implements hook_ENTITY_update() for file entity.
File
- ./
image_style_warmer.module, line 46 - ISW Module file creates image styles on image upload and via queue.
Code
function image_style_warmer_file_update(FileInterface $file) {
\Drupal::service('image_style_warmer.warmer')
->warmUp($file);
}