environment-indicator.html.twig in Environment Indicator 4.x
Same filename and directory in other branches
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 also
File
templates/environment-indicator.html.twigView source
- {#
- /**
- * @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>