You are here

public function SensorResult::getPreviousResult in Monitoring 8

Gets the previous sensor result.

Return value

\Drupal\monitoring\Entity\SensorResultDataInterface|null A SensorResultEntity representing the previous sensor result. NULL if there is no previous result.

Overrides SensorResultInterface::getPreviousResult

File

src/Result/SensorResult.php, line 535

Class

SensorResult
Generic container for the sensor result.

Namespace

Drupal\monitoring\Result

Code

public function getPreviousResult() {
  return $this->previousResult;
}