You are here

public function SensorInfo::isConfigurable in Monitoring 7

Checks if sensor is configurable.

Return value

bool

File

lib/Drupal/monitoring/Sensor/SensorInfo.php, line 248
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 isConfigurable() {
  return in_array('Drupal\\monitoring\\Sensor\\SensorConfigurableInterface', class_implements($this
    ->getSensorClass()));
}