protected static function SimpletestResultsForm::buildStatusImageMap in SimpleTest 8.3
Builds the status image map.
1 call to SimpletestResultsForm::buildStatusImageMap()
- SimpletestResultsForm::addResultForm in src/
Form/ SimpletestResultsForm.php - Adds the result form to a $form.
File
- src/
Form/ SimpletestResultsForm.php, line 72
Class
- SimpletestResultsForm
- Test results form for $test_id.
Namespace
Drupal\simpletest\FormCode
protected static function buildStatusImageMap() {
$image_pass = [
'#theme' => 'image',
'#uri' => 'core/misc/icons/73b355/check.svg',
'#width' => 18,
'#height' => 18,
'#alt' => 'Pass',
];
$image_fail = [
'#theme' => 'image',
'#uri' => 'core/misc/icons/e32700/error.svg',
'#width' => 18,
'#height' => 18,
'#alt' => 'Fail',
];
$image_exception = [
'#theme' => 'image',
'#uri' => 'core/misc/icons/e29700/warning.svg',
'#width' => 18,
'#height' => 18,
'#alt' => 'Exception',
];
$image_debug = [
'#theme' => 'image',
'#uri' => 'core/misc/icons/e29700/warning.svg',
'#width' => 18,
'#height' => 18,
'#alt' => 'Debug',
];
return [
'pass' => $image_pass,
'fail' => $image_fail,
'exception' => $image_exception,
'debug' => $image_debug,
];
}