download-file-link.html.twig in File Download 8
Default theme implementation for a link to a file.
Available variables:
- attributes: The HTML attributes for the containing element.
- link: A link to the file.
- size: size of file in standard format
- raw_size: size of file in bytes
- description: $item->description
- title: The value applied to the download link anchor tag
See also
1 theme call to download-file-link.html.twig
- FileDownloadFieldFormatter::viewElements in src/Plugin/ Field/ FieldFormatter/ FileDownloadFieldFormatter.php 
- Builds a renderable array for a field value.
File
templates/download-file-link.html.twigView source
- {#
- /**
-  * @file
-  * Default theme implementation for a link to a file.
-  *
-  * Available variables:
-  * - attributes: The HTML attributes for the containing element.
-  * - link: A link to the file.
-  * - size: size of file in standard format
-  * - raw_size: size of file in bytes
-  * - description: $item->description
-  * - title: The value applied to the download link anchor tag
-  *
-  * @see template_preprocess_file_link()
-  *
-  * @ingroup themeable
-  */
- #}
- <span{{ attributes }}>{{ link }}</span>
- {% if size %}
-   <span class="file-download-size">({{ size }})</span>
- {% endif %}
