simpletest-result-summary.html.twig

Same filename in this branch
  1. 8.9.x core/themes/stable/templates/admin/simpletest-result-summary.html.twig

Default theme implementation for simpletest result summaries.

Available variables:

  • label: An optional label to be rendered before the results.
  • items: Pluralized summaries for each result type (number of passes, fails, exceptions, and debug messages).
  • pass: The number of passes.
  • fail: The number of fails.
  • exception: The number of exceptions.
  • debug: The number of debug messages.

See also

template_preprocess_simpletest_result_summary()

2 theme calls to simpletest-result-summary.html.twig
SimpletestResultsForm::addResultForm in core/modules/simpletest/src/Form/SimpletestResultsForm.php
Adds the result form to a $form.
_simpletest_batch_operation in core/modules/simpletest/simpletest.module
Implements callback_batch_operation().

File

core/modules/simpletest/templates/simpletest-result-summary.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for simpletest result summaries.
  5. *
  6. * Available variables:
  7. * - label: An optional label to be rendered before the results.
  8. * - items: Pluralized summaries for each result type (number of passes, fails,
  9. * exceptions, and debug messages).
  10. * - pass: The number of passes.
  11. * - fail: The number of fails.
  12. * - exception: The number of exceptions.
  13. * - debug: The number of debug messages.
  14. *
  15. * @see template_preprocess_simpletest_result_summary()
  16. *
  17. * @ingroup themeable
  18. */
  19. #}
  20. <div class="simpletest-{{ fail + exception == 0 ? 'pass' : 'fail' }}">
  21. {{ label }} {{ items|join(', ') }}
  22. </div>

Related topics


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