Skip to content

Commit 158bab4

Browse files
fjgarlinLuigisa
andauthored
Fixes deprecated call to file url. (#1242)
Fixes `Call to undefined method Drupal\file\Entity\File::url()` error. Co-authored-by: Luis Gil <luis.gil@biko2.com>
1 parent 9265205 commit 158bab4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/graphql_core/src/Plugin/GraphQL/Fields/Entity/Fields/Image/ImageDerivative.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ protected function resolveValues($value, array $args, ResolveContext $context, R
8585
$url = $style->buildUrl($file->getFileUri());
8686
}
8787
else {
88-
$url = $file->url();
88+
$url = $file->getFileUri();
8989
}
9090

9191
yield new CacheableValue([

0 commit comments

Comments
 (0)