You are here

public function SensorPluginBase::isEnabled in Monitoring 8

Determines if sensor is enabled.

Return value

bool Enabled flag.

Overrides SensorPluginInterface::isEnabled

File

src/SensorPlugin/SensorPluginBase.php, line 112
Contains \Drupal\monitoring\SensorPlugin\SensorPluginBase.

Class

SensorPluginBase
Abstract SensorPluginInterface implementation with common behaviour and will be extended by sensor plugins.

Namespace

Drupal\monitoring\SensorPlugin

Code

public function isEnabled() {
  return (bool) $this->sensorConfig
    ->isEnabled();
}