file-link-formatter-link-separate.html.twig in File Link 2.0.x
Same filename and directory in other branches
Default theme implementation of a file_link with separate title and URL.
Available variables:
- link: The link that has already been formatted by Link::fromTextAndUrl().
 - title: (optional) A descriptive or alternate title for the link, which may be different than the actual link text.
 - size: The target file size formatted according to formatter settings.
 - format: The file mime-type.
 
File
templates/file-link-formatter-link-separate.html.twigView source
- {#
 - /**
 -  * @file
 -  * Default theme implementation of a file_link with separate title and URL.
 -  *
 -  * Available variables:
 -  * - link: The link that has already been formatted by Link::fromTextAndUrl().
 -  * - title: (optional) A descriptive or alternate title for the link, which may
 -  *   be different than the actual link text.
 -  * - size: The target file size formatted according to formatter settings.
 -  * - format: The file mime-type.
 -  *
 -  * @see template_preprocess()
 -  * @see template_preprocess_link_formatter_link_separate()
 -  *
 -  * @ingroup themeable
 -  */
 - #}
 - {% spaceless %}
 -   {{ title }}
 -   {{ link }}
 - {% if format and size %}
 -   ({{ format }}, {{ size }})
 - {% endif %}
 - {% endspaceless %}