You are here

public static function SensorResult::getStatusLabels in Monitoring 8

3 calls to SensorResult::getStatusLabels()
monitoring_mail_form_monitoring_settings_alter in modules/monitoring_mail/monitoring_mail.module
Implements hook_form_FORM_ID_alter().
SensorResult::getStatusLabel in src/Result/SensorResult.php
Gets a human readable label for the sensor status.
SensorResultEntity::getStatusLabel in src/Entity/SensorResultEntity.php
Gets a human readable label for the sensor status.

File

src/Result/SensorResult.php, line 134

Class

SensorResult
Generic container for the sensor result.

Namespace

Drupal\monitoring\Result

Code

public static function getStatusLabels() {
  return [
    self::STATUS_CRITICAL => t('Critical'),
    self::STATUS_WARNING => t('Warning'),
    self::STATUS_INFO => t('Info'),
    self::STATUS_OK => t('OK'),
    self::STATUS_UNKNOWN => t('Unknown'),
  ];
}