function template_preprocess_simpletest_result_summary in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/simpletest/simpletest.module \template_preprocess_simpletest_result_summary()
Prepares variables for simpletest result summary templates.
Default template: simpletest-result-summary.html.twig.
Parameters
array $variables: An associative array containing:
- label: An optional label to be rendered before the results.
- ok: The overall group result pass or fail.
- pass: The number of passes.
- fail: The number of fails.
- exception: The number of exceptions.
- debug: The number of debug messages.
File
- core/
modules/ simpletest/ simpletest.module, line 76 - Provides testing functionality.
Code
function template_preprocess_simpletest_result_summary(&$variables) {
$variables['items'] = _simpletest_build_summary_line($variables);
}