Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / themes / classy / templates / field / file-link.html.twig
1 {#
2 /**
3  * @file
4  * Theme override for a link to a file.
5  *
6  * Available variables:
7  * - attributes: The HTML attributes for the containing element.
8  * - link: A link to the file.
9  * - icon: The icon image representing the file type.
10  *
11  * @see template_preprocess_file_link()
12  */
13 #}
14 {{ attach_library('classy/file') }}
15 <span{{ attributes }}>{{ icon }} {{ link }}</span>