You are here

environment-indicator.html.twig in Environment Indicator 4.x

Same filename and directory in other branches
  1. 8.3 templates/environment-indicator.html.twig

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.

File

templates/environment-indicator.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation of an environment indicator element.
  5. *
  6. * Available variables:
  7. * - title: The name of the environment.
  8. * - description: Additional information to be shown.
  9. * - attributes: HTML attributes for the environment indicator.
  10. *
  11. * @see template_preprocess_datetime_form()
  12. *
  13. * @ingroup themeable
  14. */
  15. #}
  16. <div{{ attributes }}>
  17. {{ title }}
  18. {% if description %}
  19. <span class="description">{{ description }}</span>
  20. {% endif %}
  21. {% if switcher %}
  22. {{ switcher }}
  23. {% endif %}
  24. </div>