status-report-counter.html.twig

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

Theme override for status report counter.

Available variables:

  • amount: The number shown on counter.
  • text: The text shown on counter.
  • severity: The severity of the counter.
2 theme calls to status-report-counter.html.twig
ReviewForm::buildForm in core/modules/migrate_drupal_ui/src/Form/ReviewForm.php
Form constructor.
StatusReportPage::preRenderCounters in core/modules/system/src/Element/StatusReportPage.php
#pre_render callback to create counter elements.

File

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

View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override for status report counter.
  5. *
  6. * Available variables:
  7. * - amount: The number shown on counter.
  8. * - text: The text shown on counter.
  9. * - severity: The severity of the counter.
  10. *
  11. * @ingroup themeable
  12. */
  13. #}
  14. {%
  15. set classes = [
  16. 'system-status-counter',
  17. 'system-status-counter--' ~ severity,
  18. ]
  19. %}
  20. <span{{ attributes.addClass(classes) }}>
  21. <span class="system-status-counter__status-icon system-status-counter__status-icon--{{ severity }}"></span>
  22. <span class="system-status-counter__status-title">
  23. <span class="system-status-counter__title-count">{{ amount }} {{ text }}</span>
  24. <span class="system-status-counter__details"><a href="#{{ severity }}" ><span class="visually-hidden">{{ text }} </span>{{ 'Details'|t }}</a></span>
  25. </span>
  26. </span>

Related topics


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