image_file_move(File $file, File $source)
Implements hook_file_move().
function image_file_move(File $file, File $source) {
// Delete any image derivatives at the original image path.
image_path_flush($source->getFileUri());
}
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!image!image.module/function/image_file_move/8.1.x