You are here

public function SensorInfo::isDefiningThresholds in Monitoring 7

Checks if sensor defines thresholds.

Return value

bool

1 call to SensorInfo::isDefiningThresholds()
SensorInfo::toArray in lib/Drupal/monitoring/Sensor/SensorInfo.php
Compiles sensor info values to an associative array.

File

lib/Drupal/monitoring/Sensor/SensorInfo.php, line 266
Contains \Drupal\monitoring\Sensor\SensorInfo.

Class

SensorInfo
Represents a sensor info as defined in hook_monitoring_sensor_info().

Namespace

Drupal\monitoring\Sensor

Code

public function isDefiningThresholds() {
  return in_array('Drupal\\monitoring\\Sensor\\SensorThresholdsInterface', class_implements($this
    ->getSensorClass()));
}