status-report.html.twig

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

Theme override for the status report.

Available variables:

  • requirements: Contains multiple requirement instances. Each requirement 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.

See also

template_preprocess_status_report()

File

core/themes/stable/templates/admin/status-report.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override for the status report.
  5. *
  6. * Available variables:
  7. * - requirements: Contains multiple requirement instances.
  8. * Each requirement contains:
  9. * - title: The title of the requirement.
  10. * - value: (optional) The requirement's status.
  11. * - description: (optional) The requirement's description.
  12. * - severity_title: The title of the severity.
  13. * - severity_status: Indicates the severity status.
  14. *
  15. * @see template_preprocess_status_report()
  16. */
  17. #}
  18. <table class="system-status-report">
  19. <tbody>
  20. {% for requirement in requirements %}
  21. <tr class="system-status-report__entry system-status-report__entry--{{ requirement.severity_status }} color-{{ requirement.severity_status }}">
  22. {% if requirement.severity_status in ['warning', 'error'] %}
  23. <th class="system-status-report__status-title system-status-report__status-icon system-status-report__status-icon--{{ requirement.severity_status }}">
  24. <span class="visually-hidden">{{ requirement.severity_title }}</span>
  25. {% else %}
  26. <th class="system-status-report__status-title">
  27. {% endif %}
  28. {{ requirement.title }}
  29. </th>
  30. <td>
  31. {{ requirement.value }}
  32. {% if requirement.description %}
  33. <div class="description">{{ requirement.description }}</div>
  34. {% endif %}
  35. </td>
  36. </tr>
  37. {% endfor %}
  38. </tbody>
  39. </table>

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