From 0a83c8f1d9de2bef3d8cd82726728b8134444b78 Mon Sep 17 00:00:00 2001 From: Ant Brown Date: Mon, 29 Nov 2021 10:13:26 +1300 Subject: [PATCH] Fix deprecated File::url(), use createFileUrl() instead * islandora.tokens.inc * See https://www.drupal.org/node/3019830 --- islandora.tokens.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/islandora.tokens.inc b/islandora.tokens.inc index 8d1c4b6b..abbe6474 100644 --- a/islandora.tokens.inc +++ b/islandora.tokens.inc @@ -79,7 +79,7 @@ function islandora_tokens($type, $tokens, array $data, array $options, Bubbleabl if ($media) { $file = \Drupal::service('islandora.media_source_service')->getSourceFile($media); if (!empty($file)) { - $url = $file->url(); + $url = $file->createFileUrl(); $replacements[$original] = $url; } }