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