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, ];