status-report.html.twig
Same filename in this branch
Same filename in other branches
- 8.9.x core/themes/stable/templates/admin/status-report.html.twig
- 8.9.x core/modules/system/templates/status-report.html.twig
- 10 core/themes/stable9/templates/admin/status-report.html.twig
- 10 core/modules/system/templates/status-report.html.twig
- 11.x core/themes/stable9/templates/admin/status-report.html.twig
- 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
- {#
- /**
- * @file
- * 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 template_preprocess_status_report()
- */
- #}
- <table class="system-status-report">
- <tbody>
- {% for requirement in requirements %}
- <tr class="system-status-report__entry system-status-report__entry--{{ requirement.severity_status }} color-{{ requirement.severity_status }}">
- {% if requirement.severity_status in ['warning', 'error'] %}
- <th class="system-status-report__status-title system-status-report__status-icon system-status-report__status-icon--{{ requirement.severity_status }}">
- <span class="visually-hidden">{{ requirement.severity_title }}</span>
- {% else %}
- <th class="system-status-report__status-title">
- {% endif %}
- {{ requirement.title }}
- </th>
- <td>
- {{ requirement.value }}
- {% if requirement.description %}
- <div class="description">{{ requirement.description }}</div>
- {% endif %}
- </td>
- </tr>
- {% endfor %}
- </tbody>
- </table>
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.