Skip to content

Commit

Permalink
Fixes deprecated call to file url. (#1242)
Browse files Browse the repository at this point in the history
Fixes `Call to undefined method Drupal\file\Entity\File::url()` error.

Co-authored-by: Luis Gil <[email protected]>
  • Loading branch information
fjgarlin and Luigisa authored Sep 7, 2023
1 parent 9265205 commit 158bab4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ protected function resolveValues($value, array $args, ResolveContext $context, R
$url = $style->buildUrl($file->getFileUri());
}
else {
$url = $file->url();
$url = $file->getFileUri();
}

yield new CacheableValue([
Expand Down

0 comments on commit 158bab4

Please sign in to comment.