You are here

function image_file_move in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/image/image.module \image_file_move()

Implements hook_file_move().

File

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

Code

function image_file_move(File $file, File $source) {

  // Delete any image derivatives at the original image path.
  image_path_flush($source
    ->getFileUri());
}