badge.twig

Same filename in this branch
  1. 11.x core/profiles/demo_umami/themes/umami/components/badge/badge.twig
Same filename and directory in other branches
  1. 10 core/profiles/demo_umami/themes/umami/components/badge/badge.twig
<div{{ attributes.addClass('toolbar-badge', 'toolbar-badge--' ~ status|default('info')) }}>
  {% block label %}
    {{ label }}
  {% endblock %}
</div>

File

core/modules/navigation/components/badge/badge.twig

View source
  1. <div{{ attributes.addClass('toolbar-badge', 'toolbar-badge--' ~ status|default('info')) }}>
  2. {% block label %}
  3. {{ label }}
  4. {% endblock %}
  5. </div>

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.