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