Closed (duplicate)
Project:
Drupal core
Version:
8.6.x-dev
Component:
file system
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
26 Sep 2015 at 11:43 UTC
Updated:
9 Aug 2019 at 18:49 UTC
Jump to comment: Most recent
Comments
Comment #8
mecano commentedAny way we can access the link variable attributes, uri and title from file-link.html.twig?Comment #9
olarin commentedThe correct solution would be https://www.drupal.org/project/drupal/issues/2913487 - by changing it to a renderable array this would allow modules and themes to implement file_link preprocessors and add attributes to said render array. Links generally shouldn't be manually created in templates if it can be avoided.