direct-download-file-link.html.twig in DownloadFile 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.
1 theme call to direct-download-file-link.html.twig
- DirectDownloadFormatter::viewElements in src/
Plugin/ Field/ FieldFormatter/ DirectDownloadFormatter.php - extends FileFormatterBase Builds a renderable array for a field value.
File
templates/direct-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.
- *
- * @see template_preprocess_direct_download_file_link()
- *
- * @ingroup themeable
- */
- #}
-
- <span{{ attributes }}>{{ link }} </span>