simpletest-result-summary.html.twig
Same filename in this branch
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
- {#
- /**
- * @file
- * 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 template_preprocess_simpletest_result_summary()
- *
- * @ingroup themeable
- */
- #}
- <div class="simpletest-{{ fail + exception == 0 ? 'pass' : 'fail' }}">
- {{ label }} {{ items|join(', ') }}
- </div>
Related topics
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.