You are here

public function Sensor::isEnabled in Monitoring 7

Determines if sensor is enabled.

Return value

boolean Enabled flag.

Overrides SensorInterface::isEnabled

1 call to Sensor::isEnabled()
SensorConfigurable::settingsForm in lib/Drupal/monitoring/Sensor/SensorConfigurable.php
Gets settings form for a specific sensor.

File

lib/Drupal/monitoring/Sensor/Sensor.php, line 43
Contains \Drupal\monitoring\Sensor\Sensor.

Class

Sensor
Abstract SensorInterface implementation with common behaviour.

Namespace

Drupal\monitoring\Sensor

Code

public function isEnabled() {
  return (bool) $this->info
    ->getSetting('enabled');
}