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