file-audio.html.twig
Same filename in this branch
- 8.9.x core/profiles/demo_umami/themes/umami/templates/classy/field/file-audio.html.twig
- 8.9.x core/themes/seven/templates/classy/field/file-audio.html.twig
- 8.9.x core/themes/claro/templates/classy/field/file-audio.html.twig
- 8.9.x core/themes/bartik/templates/classy/field/file-audio.html.twig
- 8.9.x core/themes/stable/templates/field/file-audio.html.twig
- 8.9.x core/themes/classy/templates/field/file-audio.html.twig
Same filename in other branches
- 9 core/profiles/demo_umami/themes/umami/templates/classy/field/file-audio.html.twig
- 9 core/themes/stable9/templates/field/file-audio.html.twig
- 9 core/themes/seven/templates/classy/field/file-audio.html.twig
- 9 core/themes/claro/templates/classy/field/file-audio.html.twig
- 9 core/themes/bartik/templates/classy/field/file-audio.html.twig
- 9 core/themes/stable/templates/field/file-audio.html.twig
- 9 core/themes/starterkit_theme/templates/field/file-audio.html.twig
- 9 core/themes/classy/templates/field/file-audio.html.twig
- 9 core/modules/file/templates/file-audio.html.twig
- 10 core/profiles/demo_umami/themes/umami/templates/classy/field/file-audio.html.twig
- 10 core/themes/stable9/templates/field/file-audio.html.twig
- 10 core/themes/claro/templates/classy/field/file-audio.html.twig
- 10 core/themes/starterkit_theme/templates/field/file-audio.html.twig
- 10 core/modules/file/templates/file-audio.html.twig
- 11.x core/profiles/demo_umami/themes/umami/templates/classy/field/file-audio.html.twig
- 11.x core/themes/stable9/templates/field/file-audio.html.twig
- 11.x core/themes/claro/templates/classy/field/file-audio.html.twig
- 11.x core/themes/starterkit_theme/templates/field/file-audio.html.twig
- 11.x core/modules/file/templates/file-audio.html.twig
Default theme implementation to display the file entity as an audio tag.
Available variables:
- attributes: An array of HTML attributes, intended to be added to the audio tag.
- files: And array of files to be added as sources for the audio tag. Each
element is an array with the following elements:
- file: The full file object.
- source_attributes: An array of HTML attributes for to be added to the source tag.
File
-
core/
modules/ file/ templates/ file-audio.html.twig
View source
- {#
- /**
- * @file
- * Default theme implementation to display the file entity as an audio tag.
- *
- * Available variables:
- * - attributes: An array of HTML attributes, intended to be added to the
- * audio tag.
- * - files: And array of files to be added as sources for the audio tag. Each
- * element is an array with the following elements:
- * - file: The full file object.
- * - source_attributes: An array of HTML attributes for to be added to the
- * source tag.
- *
- * @ingroup themeable
- */
- #}
- <audio {{ attributes }}>
- {% for file in files %}
- <source {{ file.source_attributes }} />
- {% endfor %}
- </audio>
Related topics
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.