From 70e6c12390bc66dca947110b835dd7770c6a66a1 Mon Sep 17 00:00:00 2001 From: Jeff He Date: Thu, 19 Oct 2023 19:56:15 -0400 Subject: [PATCH] removed and replaced dep function --- src/Plugin/MediaThumbnail/MediaThumbnailTiff.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Plugin/MediaThumbnail/MediaThumbnailTiff.php b/src/Plugin/MediaThumbnail/MediaThumbnailTiff.php index fe421d4..2509bdd 100644 --- a/src/Plugin/MediaThumbnail/MediaThumbnailTiff.php +++ b/src/Plugin/MediaThumbnail/MediaThumbnailTiff.php @@ -73,7 +73,7 @@ public function createThumbnail($sourceUri) { $im->destroy(); // Return a new managed file object using the generated thumbnail. - return file_save_data($image, $sourceUri . '.jpg'); + return \Drupal::service('file.repository')->writeData($image, $sourceUri . '.jpg'); }