You are here

protected static function SimpletestResultsForm::buildStatusImageMap in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/simpletest/src/Form/SimpletestResultsForm.php \Drupal\simpletest\Form\SimpletestResultsForm::buildStatusImageMap()

Builds the status image map.

1 call to SimpletestResultsForm::buildStatusImageMap()
SimpletestResultsForm::addResultForm in core/modules/simpletest/src/Form/SimpletestResultsForm.php
Adds the result form to a $form.

File

core/modules/simpletest/src/Form/SimpletestResultsForm.php, line 66
Contains \Drupal\simpletest\Form\SimpletestResultsForm.

Class

SimpletestResultsForm
Test results form for $test_id.

Namespace

Drupal\simpletest\Form

Code

protected static function buildStatusImageMap() {
  $image_pass = array(
    '#theme' => 'image',
    '#uri' => 'core/misc/icons/73b355/check.svg',
    '#width' => 18,
    '#height' => 18,
    '#alt' => 'Pass',
  );
  $image_fail = array(
    '#theme' => 'image',
    '#uri' => 'core/misc/icons/e32700/error.svg',
    '#width' => 18,
    '#height' => 18,
    '#alt' => 'Fail',
  );
  $image_exception = array(
    '#theme' => 'image',
    '#uri' => 'core/misc/icons/e29700/warning.svg',
    '#width' => 18,
    '#height' => 18,
    '#alt' => 'Exception',
  );
  $image_debug = array(
    '#theme' => 'image',
    '#uri' => 'core/misc/icons/e29700/warning.svg',
    '#width' => 18,
    '#height' => 18,
    '#alt' => 'Debug',
  );
  return array(
    'pass' => $image_pass,
    'fail' => $image_fail,
    'exception' => $image_exception,
    'debug' => $image_debug,
  );
}