status-report-grouped.html.twig

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

Theme override to display status report.

  • 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.
1 theme call to status-report-grouped.html.twig
StatusReport::getInfo in core/lib/Drupal/Core/Render/Element/StatusReport.php
Returns the element properties for this element.

File

core/themes/claro/templates/status-report-grouped.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override to display status report.
  5. *
  6. * - grouped_requirements: Contains grouped requirements.
  7. * Each group contains:
  8. * - title: The title of the group.
  9. * - type: The severity of the group.
  10. * - items: The requirement instances.
  11. * Each requirement item contains:
  12. * - title: The title of the requirement.
  13. * - value: (optional) The requirement's status.
  14. * - description: (optional) The requirement's description.
  15. * - severity_title: The title of the severity.
  16. * - severity_status: Indicates the severity status.
  17. */
  18. #}
  19. {{ attach_library('core/drupal.collapse') }}
  20. <div class="system-status-report">
  21. <h2 class="system-status-general-info__header">{{ 'Status Details'|t }}</h2>
  22. {% for group in grouped_requirements %}
  23. <details class="claro-details" open>
  24. <summary id="{{ group.type }}" class="claro-details__summary claro-details__summary--system-status-report">{{ group.title }}</summary>
  25. <div class="claro-details__wrapper claro-details__wrapper--system-status-report">
  26. {% for requirement in group.items %}
  27. <div class="system-status-report__row">
  28. {%
  29. set summary_classes = [
  30. 'system-status-report__status-title',
  31. group.type in ['warning', 'error'] ? 'system-status-report__status-icon system-status-report__status-icon--' ~ group.type
  32. ]
  33. %}
  34. <div{{ create_attribute({'class': summary_classes}) }} role="button">
  35. {% if requirement.severity_title %}
  36. <span class="visually-hidden">{{ requirement.severity_title }}</span>
  37. {% endif %}
  38. {{ requirement.title }}
  39. </div>
  40. <div class="system-status-report__entry__value">
  41. {{ requirement.value }}
  42. {% if requirement.description %}
  43. <div class="description">{{ requirement.description }}</div>
  44. {% endif %}
  45. </div>
  46. </div>
  47. {% endfor %}
  48. </div>
  49. </details>
  50. {% endfor %}
  51. </div>

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