Skip to content

Commit

Permalink
Fix deprecated File::url(), use createFileUrl() instead (#855)
Browse files Browse the repository at this point in the history
* islandora.tokens.inc
* See https://www.drupal.org/node/3019830
Co-authored-by: Ant Brown <[email protected]>
  • Loading branch information
antbrown authored Feb 8, 2023
1 parent c36f7d9 commit 2794f01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion islandora.tokens.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 2794f01

Please sign in to comment.