status-report.html.twig

Same filename in this branch
  1. 10 core/themes/stable9/templates/admin/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. 11.x core/themes/stable9/templates/admin/status-report.html.twig
  7. 11.x core/modules/system/templates/status-report.html.twig

Default theme implementation 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/modules/system/templates/status-report.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation 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. * @ingroup themeable
  21. */
  22. #}
  23. {% for group in grouped_requirements %}
  24. <h3 id="{{ group.type }}">{{ group.title }}</h3>
  25. {% for requirement in group.items %}
  26. <details>
  27. <summary role="button">
  28. {% if requirement.severity_title %}
  29. <span class="visually-hidden">{{ requirement.severity_title }}</span>
  30. {% endif %}
  31. {{ requirement.title }}
  32. </summary>
  33. {{ requirement.value }}
  34. {% if requirement.description %}
  35. <div>{{ requirement.description }}</div>
  36. {% endif %}
  37. </details>
  38. {% endfor %}
  39. {% endfor %}

Related topics


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