You are here

public function SensorConfig::isBool in Monitoring 8

Determines if the sensor value type is boolean.

Return value

bool TRUE if the sensor value type is boolean.

Overrides SensorConfigInterface::isBool

File

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

Class

SensorConfig
Represents a sensor config entity class.

Namespace

Drupal\monitoring\Entity

Code

public function isBool() {
  return $this
    ->getValueType() == 'bool';
}