Version 1
[yaffs-website] / web / modules / contrib / environment_indicator / templates / environment-indicator.html.twig
diff --git a/web/modules/contrib/environment_indicator/templates/environment-indicator.html.twig b/web/modules/contrib/environment_indicator/templates/environment-indicator.html.twig
new file mode 100644 (file)
index 0000000..46e3214
--- /dev/null
@@ -0,0 +1,24 @@
+{#
+/**
+ * @file
+ * Default theme implementation of an environment indicator element.
+ *
+ * Available variables:
+ * - title: The name of the environment.
+ * - description: Additional information to be shown.
+ * - attributes: HTML attributes for the environment indicator.
+ *
+ * @see template_preprocess_datetime_form()
+ *
+ * @ingroup themeable
+ */
+#}
+<div{{ attributes }}>
+  {{ title }}
+  {% if description %}
+    <span class="description">{{ description }}</span>
+  {% endif %}
+  {% if switcher %}
+    {{ switcher }}
+  {% endif %}
+</div>