drupal/core/themes/stable9/templates/field/file-link.html.twig

18 lines
371 B
Twig

{#
/**
* @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.
* - file_size: The size of the file.
*
* @see template_preprocess_file_link()
*/
#}
<span{{ attributes }}>{{ link }}</span>
{% if file_size %}
<span>({{ file_size }})</span>
{% endif %}