Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / file / templates / file-video.html.twig
diff --git a/web/core/modules/file/templates/file-video.html.twig b/web/core/modules/file/templates/file-video.html.twig
new file mode 100644 (file)
index 0000000..162fd49
--- /dev/null
@@ -0,0 +1,22 @@
+{#
+/**
+* @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
+*/
+#}
+<video {{ attributes }}>
+  {% for file in files %}
+    <source {{ file.source_attributes }} />
+  {% endfor %}
+</video>