Skip to content
Snippets Groups Projects
Commit e09073da authored by Viktor Holovachek's avatar Viktor Holovachek
Browse files

Issue #3146191 - Fix version

parent 5badcfbc
Branches
No related tags found
1 merge request!1Issue #3146191 - Fix version
name: Backports
type: module
description: UI and other backports from Drupal 8.1
core: 8.x
core_version_requirement: ^8.8 || ^9.0 || ^10.0
......@@ -53,7 +53,7 @@ class ImageUrlFormatter extends ImageFormatter {
$image_uri = $image->getFileUri();
$url = $image_style
? $image_style->buildUrl($image_uri)
: file_create_url($image_uri);
: \Drupal::service('file_url_generator')->generateAbsoluteString($image_uri);
// Set the link url if settings require such.
$link_url = ($image_link_setting == 'file') ? Url::fromUri($url) : $link_url;
......@@ -77,4 +77,5 @@ class ImageUrlFormatter extends ImageFormatter {
return $elements;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment