/**
 * Implements hook_image_style_flush().
 */
function {{ machine_name }}_image_style_flush($style) {
  // Empty cached data that contains information about the style.
  \Drupal::cache('mymodule')->deleteAll();
}
