You are here

status-report.html.twig in Drupal 9

Theme override for the status report.

Available variables:

  • grouped_requirements: Contains grouped requirements. Each group contains:

    • title: The title of the group.
    • type: The severity of the group.
    • items: The requirement instances. Each requirement item contains:

      • title: The title of the requirement.
      • value: (optional) The requirement's status.
      • description: (optional) The requirement's description.
      • severity_title: The title of the severity.
      • severity_status: Indicates the severity status.
  • requirements: Ungrouped requirements

File

core/themes/stable9/templates/admin/status-report.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override for the status report.
  5. *
  6. * Available variables:
  7. * - grouped_requirements: Contains grouped requirements.
  8. * Each group contains:
  9. * - title: The title of the group.
  10. * - type: The severity of the group.
  11. * - items: The requirement instances.
  12. * Each requirement item contains:
  13. * - title: The title of the requirement.
  14. * - value: (optional) The requirement's status.
  15. * - description: (optional) The requirement's description.
  16. * - severity_title: The title of the severity.
  17. * - severity_status: Indicates the severity status.
  18. * - requirements: Ungrouped requirements
  19. */
  20. #}
  21. {% for group in grouped_requirements %}
  22. <h3 id="{{ group.type }}">{{ group.title }}</h3>
  23. {% for requirement in group.items %}
  24. <details>
  25. <summary role="button">
  26. {% if requirement.severity_title %}
  27. <span class="visually-hidden">{{ requirement.severity_title }}</span>
  28. {% endif %}
  29. {{ requirement.title }}
  30. </summary>
  31. {{ requirement.value }}
  32. {% if requirement.description %}
  33. <div>{{ requirement.description }}</div>
  34. {% endif %}
  35. </details>
  36. {% endfor %}
  37. {% endfor %}