public function SensorResult::isWarning in Monitoring 7
Same name and namespace in other branches
- 8 src/Result/SensorResult.php \Drupal\monitoring\Result\SensorResult::isWarning()
Checks if sensor is in WARNING state.
Return value
boolean
Overrides SensorResultInterface::isWarning
File
- lib/
Drupal/ monitoring/ Result/ SensorResult.php, line 391 - Contains \Drupal\monitoring\Result\SensorResult.
Class
- SensorResult
- Generic container for the sensor result.
Namespace
Drupal\monitoring\ResultCode
public function isWarning() {
return $this
->getStatus() == SensorResultInterface::STATUS_WARNING;
}