You are here

public function SensorInfo::isNumeric in Monitoring 7

Determines if the sensor value is numeric.

Return value

bool TRUE if the sensor value is numeric.

1 call to SensorInfo::isNumeric()
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 152
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 isNumeric() {
  return isset($this->sensorInfo['numeric']) ? $this->sensorInfo['numeric'] : TRUE;
}