You are here

public function SensorConfig::isEnabled in Monitoring 8

Checks if sensor is enabled.

Return value

bool

Overrides SensorConfigInterface::isEnabled

1 call to SensorConfig::isEnabled()
SensorConfig::getDefinition in src/Entity/SensorConfig.php
Compiles sensor values to an associative array.

File

src/Entity/SensorConfig.php, line 284
Contains \Drupal\monitoring\Entity\SensorConfig.

Class

SensorConfig
Represents a sensor config entity class.

Namespace

Drupal\monitoring\Entity

Code

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