projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website]
/
web
/
core
/
modules
/
image
/
image.module
diff --git
a/web/core/modules/image/image.module
b/web/core/modules/image/image.module
index 30358b90652cc207f6ff8e0e7224b9f67c10bb61..1c00e037770415acddde5b6f9b9cff8659aaf2fa 100644
(file)
--- a/
web/core/modules/image/image.module
+++ b/
web/core/modules/image/image.module
@@
-7,7
+7,7
@@
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Routing\RouteMatchInterface;
-use Drupal\file\
Entity\Fil
e;
+use Drupal\file\
FileInterfac
e;
use Drupal\field\FieldStorageConfigInterface;
use Drupal\field\FieldConfigInterface;
use Drupal\image\Entity\ImageStyle;
use Drupal\field\FieldStorageConfigInterface;
use Drupal\field\FieldConfigInterface;
use Drupal\image\Entity\ImageStyle;
@@
-210,7
+210,7
@@
function image_file_download($uri) {
/**
* Implements hook_file_move().
*/
/**
* Implements hook_file_move().
*/
-function image_file_move(File
$file, Fil
e $source) {
+function image_file_move(File
Interface $file, FileInterfac
e $source) {
// Delete any image derivatives at the original image path.
image_path_flush($source->getFileUri());
}
// Delete any image derivatives at the original image path.
image_path_flush($source->getFileUri());
}
@@
-218,7
+218,7
@@
function image_file_move(File $file, File $source) {
/**
* Implements hook_ENTITY_TYPE_predelete() for file entities.
*/
/**
* Implements hook_ENTITY_TYPE_predelete() for file entities.
*/
-function image_file_predelete(File $file) {
+function image_file_predelete(File
Interface
$file) {
// Delete any image derivatives of this image.
image_path_flush($file->getFileUri());
}
// Delete any image derivatives of this image.
image_path_flush($file->getFileUri());
}