Unverified Commit 6bae96a6 authored by larowlan's avatar larowlan

Issue #2913487 by geoffray, stefan.korn, Olarin, idebr: Return a renderable...

Issue #2913487 by geoffray, stefan.korn, Olarin, idebr: Return a renderable array instead of a GeneratedLink in template_preprocess_file_link()
parent 9eca7bba
......@@ -1506,7 +1506,7 @@ function template_preprocess_file_link(&$variables) {
$variables['attributes']->addClass($classes);
$variables['file_size'] = format_size($file->getSize());
$variables['link'] = Link::fromTextAndUrl($link_text, Url::fromUri($url, $options))->toString();
$variables['link'] = Link::fromTextAndUrl($link_text, Url::fromUri($url, $options))->toRenderable();
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment