summaryrefslogtreecommitdiffstats
path: root/core/themes/stable/templates/content/media.html.twig
diff options
context:
space:
mode:
Diffstat (limited to 'core/themes/stable/templates/content/media.html.twig')
-rw-r--r--core/themes/stable/templates/content/media.html.twig19
1 files changed, 19 insertions, 0 deletions
diff --git a/core/themes/stable/templates/content/media.html.twig b/core/themes/stable/templates/content/media.html.twig
new file mode 100644
index 0000000..769b7be
--- /dev/null
+++ b/core/themes/stable/templates/content/media.html.twig
@@ -0,0 +1,19 @@
+{#
+/**
+ * @file
+ * Theme override to display a media item.
+ *
+ * Available variables:
+ * - name: Name of the media.
+ * - content: Media content.
+ *
+ * @see template_preprocess_media()
+ *
+ * @ingroup themeable
+ */
+#}
+<article{{ attributes }}>
+ {% if content %}
+ {{ content }}
+ {% endif %}
+</article>