updated core from 8.4 to 8.5 : bug with login_destination
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
|
||||
use Drupal\Core\Entity\EntityInterface;
|
||||
use Drupal\Core\Routing\RouteMatchInterface;
|
||||
use Drupal\file\Entity\File;
|
||||
use Drupal\file\FileInterface;
|
||||
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().
|
||||
*/
|
||||
function image_file_move(File $file, File $source) {
|
||||
function image_file_move(FileInterface $file, FileInterface $source) {
|
||||
// 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.
|
||||
*/
|
||||
function image_file_predelete(File $file) {
|
||||
function image_file_predelete(FileInterface $file) {
|
||||
// Delete any image derivatives of this image.
|
||||
image_path_flush($file->getFileUri());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user