image_file_move

image_file_move(File $file, File $source)

Implements hook_file_move().

File

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

Code

1
2
3
4
function image_file_move(File $file, File $source) {
  // Delete any image derivatives at the original image path.
  image_path_flush($source->getFileUri());
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.