claro-8.x-1.x-dev/templates/field/file-link.html.twig
templates/field/file-link.html.twig
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | {# /** * @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. This seems to be always * empty. * - file_size: The size of the file. * * @see template_preprocess_file_link() * @see stable_preprocess_image_widget() */ #} {{ attach_library( 'classy/file' ) }} <span{{ attributes }}>{{ link }} <span class = "file__size" >({{ file_size }})</span></span> |