Browse Source

Fix deprecated File::url(), use createFileUrl() instead (#855)

* islandora.tokens.inc
* See https://www.drupal.org/node/3019830
Co-authored-by: Ant Brown <ant@catalyst.net.nz>
MNPALS-2.x
Ant Brown 2 years ago committed by Rosie Le Faive
parent
commit
ee2b964a07
  1. 2
      islandora.tokens.inc

2
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;
}
}

Loading…
Cancel
Save