status-report.html.twig

Same filename in this branch
  1. 11.x core/modules/system/templates/status-report.html.twig
Same filename in other branches
  1. 9 core/themes/stable9/templates/admin/status-report.html.twig
  2. 9 core/themes/stable/templates/admin/status-report.html.twig
  3. 9 core/modules/system/templates/status-report.html.twig
  4. 8.9.x core/themes/stable/templates/admin/status-report.html.twig
  5. 8.9.x core/modules/system/templates/status-report.html.twig
  6. 10 core/themes/stable9/templates/admin/status-report.html.twig
  7. 10 core/modules/system/templates/status-report.html.twig

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 %}

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