You are here

protected function SensorDatabaseAggregator::getQueryResult in Monitoring 7

Executes the query and returns the result.

Return value

\DatabaseStatementInterface The query result.

File

lib/Drupal/monitoring/Sensor/Sensors/SensorDatabaseAggregator.php, line 80
Contains \Drupal\monitoring\Sensor\Sensors\SensorDatabaseAggregator.

Class

SensorDatabaseAggregator
Base for database aggregator sensors.

Namespace

Drupal\monitoring\Sensor\Sensors

Code

protected function getQueryResult() {
  if ($this->queryResult === NULL) {
    $query = $this
      ->buildQuery();
    $this->queryArguments = $query
      ->getArguments();
    $this->queryResult = $query
      ->execute();
  }
  return $this->queryResult;
}