image_file_predelete

image_file_predelete(File $file)

Implements hook_ENTITY_TYPE_predelete() for file entities.

File

core/modules/image/image.module, line 214
Exposes global functionality for creating image styles.

Code

1
2
3
4
function image_file_predelete(File $file) {
  // Delete any image derivatives of this image.
  image_path_flush($file->getFileUri());
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.