file-link.html.twig 334 Bytes
Newer Older
1 2 3
{#
/**
 * @file
4
 * Theme override for a link to a file.
5 6 7 8 9 10 11 12 13 14
 *
 * Available variables:
 * - attributes: The HTML attributes for the containing element.
 * - link: A link to the file.
 * - icon: The icon image representing the file type.
 *
 * @see template_preprocess_file_link()
 */
#}
<span{{ attributes }}>{{ icon }} {{ link }}</span>