You are here

public function SensorResult::getStatusLabel in Monitoring 8

Same name and namespace in other branches
  1. 7 lib/Drupal/monitoring/Result/SensorResult.php \Drupal\monitoring\Result\SensorResult::getStatusLabel()

Gets a human readable label for the sensor status.

Return value

string Sensor status label.

Overrides SensorResultDataInterface::getStatusLabel

File

src/Result/SensorResult.php, line 147

Class

SensorResult
Generic container for the sensor result.

Namespace

Drupal\monitoring\Result

Code

public function getStatusLabel() {
  $labels = self::getStatusLabels();
  return $labels[$this
    ->getResultData('sensor_status')];
}