status-report-grouped.html.twig
Same filename in this branch
Same filename in other branches
- 9 core/themes/stable9/templates/admin/status-report-grouped.html.twig
- 9 core/themes/seven/templates/status-report-grouped.html.twig
- 9 core/themes/claro/templates/status-report-grouped.html.twig
- 9 core/themes/stable/templates/admin/status-report-grouped.html.twig
- 9 core/modules/system/templates/status-report-grouped.html.twig
- 8.9.x core/themes/seven/templates/status-report-grouped.html.twig
- 8.9.x core/themes/claro/templates/status-report-grouped.html.twig
- 8.9.x core/themes/stable/templates/admin/status-report-grouped.html.twig
- 8.9.x core/modules/system/templates/status-report-grouped.html.twig
- 11.x core/themes/stable9/templates/admin/status-report-grouped.html.twig
- 11.x core/themes/claro/templates/status-report-grouped.html.twig
- 11.x core/modules/system/templates/status-report-grouped.html.twig
Theme override of grouped status report requirements.
- 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
File
-
core/
themes/ stable9/ templates/ admin/ status-report-grouped.html.twig
View source
- {#
- /**
- * @file
- * Theme override of grouped status report requirements.
- *
- * - 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.
- */
- #}
- {{ attach_library('core/drupal.collapse') }}
-
- <div>
- {% for group in grouped_requirements %}
- <div>
- <h3 id="{{ group.type }}">{{ group.title }}</h3>
- {% for requirement in group.items %}
- <details class="system-status-report__entry" open>
- {%
- set summary_classes = [
- 'system-status-report__status-title',
- group.type in ['warning', 'error'] ? 'system-status-report__status-icon system-status-report__status-icon--' ~ group.type
- ]
- %}
- <summary{{ create_attribute({'class': summary_classes}) }} role="button">
- {% if requirement.severity_title %}
- <span class="visually-hidden">{{ requirement.severity_title }}</span>
- {% endif %}
- {{ requirement.title }}
- </summary>
- <div class="system-status-report__entry__value">
- {{ requirement.value }}
- {% if requirement.description %}
- <div class="description">{{ requirement.description }}</div>
- {% endif %}
- </div>
- </details>
- {% endfor %}
- </div>
- {% endfor %}
- </div>
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.