Start with default generated template
This commit is contained in:
16
templates/field/file-link.html.twig
Normal file
16
templates/field/file-link.html.twig
Normal file
@@ -0,0 +1,16 @@
|
||||
{#
|
||||
/**
|
||||
* @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.
|
||||
* - icon: The icon image representing the file type.
|
||||
* - file_size: The size of the file.
|
||||
*
|
||||
* @see template_preprocess_file_link()
|
||||
*/
|
||||
#}
|
||||
{{ attach_library('aaron/file') }}
|
||||
<span{{ attributes }}>{{ icon }} {{ link }}</span>
|
||||
Reference in New Issue
Block a user