file-video.html.twig in Drupal 10
Same filename in this branch
- 10 core/modules/file/templates/file-video.html.twig
- 10 core/themes/starterkit_theme/templates/field/file-video.html.twig
- 10 core/themes/classy/templates/field/file-video.html.twig
- 10 core/themes/stable9/templates/field/file-video.html.twig
- 10 core/themes/stable/templates/field/file-video.html.twig
- 10 core/themes/claro/templates/classy/field/file-video.html.twig
- 10 core/themes/seven/templates/classy/field/file-video.html.twig
- 10 core/themes/bartik/templates/classy/field/file-video.html.twig
- 10 core/profiles/demo_umami/themes/umami/templates/classy/field/file-video.html.twig
Same filename and directory in other branches
Default theme implementation to display the file entity as a video tag.
Available variables:
- attributes: An array of HTML attributes, intended to be added to the video tag.
- files: And array of files to be added as sources for the video 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/themes/bartik/templates/classy/field/file-video.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation to display the file entity as a video tag.
- *
- * Available variables:
- * - attributes: An array of HTML attributes, intended to be added to the
- * video tag.
- * - files: And array of files to be added as sources for the video 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
- */
- #}
- {{ attach_library('bartik/classy.file') }}
- <video {{ attributes }}>
- {% for file in files %}
- <source {{ file.source_attributes }} />
- {% endfor %}
- </video>