From bf90607385d0779361191cc5137a439db025cc87 Mon Sep 17 00:00:00 2001 From: Martijn Cuppens Date: Sun, 28 Aug 2022 21:18:46 +0200 Subject: [PATCH] Replace deprecated function See https://www.drupal.org/node/2940031 --- src/Batch/CsvImportBatch.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Batch/CsvImportBatch.php b/src/Batch/CsvImportBatch.php index ee34c51..96d4686 100644 --- a/src/Batch/CsvImportBatch.php +++ b/src/Batch/CsvImportBatch.php @@ -38,7 +38,8 @@ public static function csvimportImportFinished($success, $results, $operations) $csv_filepath = $dir . '/' . $csv_filename; $targs = [ - ':csv_url' => file_create_url($csv_filepath), + ':csv_url' => \Drupal::service('file_url_generator') + ->generateAbsoluteString($csv_filepath), '@csv_filename' => $csv_filename, '@csv_filepath' => $csv_filepath, ];