Issue #2913487 by geoffray, stefan.korn, Olarin, idebr: Return a renderable array instead of a GeneratedLink in template_preprocess_file_link()

merge-requests/55/head
Lee Rowlands 2019-08-14 10:26:23 +10:00
parent 9eca7bba0b
commit 6bae96a634
No known key found for this signature in database
GPG Key ID: 2B829A3DF9204DC4
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}
/**