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