"Fossies" - the Fresh Open Source Software Archive

Member "drupal-8.9.10/core/modules/file/templates/file-link.html.twig" (26 Nov 2020, 475 Bytes) of package /linux/www/drupal-8.9.10.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) HTML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 {#
    2 /**
    3  * @file
    4  * Default theme implementation for a link to a file.
    5  *
    6  * Available variables:
    7  * - attributes: The HTML attributes for the containing element.
    8  * - link: A link to the file.
    9  * - file_size: The size of the file.
   10  *
   11  * @see template_preprocess_file_link()
   12  *
   13  * @ingroup themeable
   14  */
   15 #}
   16 <span{{ attributes }}>{{ link }}</span>
   17 {% if file_size %}
   18   {# @todo remove class before Drupal 9.0.0 #}
   19   <span class="file-size">({{ file_size }})</span>
   20 {% endif %}