By lauriii on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.8.x
Introduced in version:
8.8.0-alpha1
Issue links:
Description:
There's a new file_size variable in file-link.html.twig which can be used for displaying the size of the file. Currently, the size of the file is displayed with the link, but in Drupal 9 that will be up to the theme to decide whether they want to render the file size or not.
Before:
<span>{{ link }}</span>
After:
<span>{{ link }}</span>
{% if file_size %}
<span>({{ file_size }})</span>
{% endif %}
Impacts:
Themers