You are here

protected function DatabaseAggregatorSensorPlugin::buildTableRows in Monitoring 8

Builds the rows of a table.

Parameters

array $results: Array of query results.

Return value

array $rows The render array with the table rows.

5 calls to DatabaseAggregatorSensorPlugin::buildTableRows()
DatabaseAggregatorSensorPlugin::verboseResultHistory in src/Plugin/monitoring/SensorPlugin/DatabaseAggregatorSensorPlugin.php
Adds history verbose output to the render array $output.
DatabaseAggregatorSensorPlugin::verboseResultUnaggregated in src/Plugin/monitoring/SensorPlugin/DatabaseAggregatorSensorPlugin.php
Adds unaggregated verbose output to the render array $output.
ImageMissingStyleSensorPlugin::verboseResultCounting in src/Plugin/monitoring/SensorPlugin/ImageMissingStyleSensorPlugin.php
Get the aggregated table verbose output.
NonExistingUserFailedLoginsSensorPlugin::verboseResultCounting in src/Plugin/monitoring/SensorPlugin/NonExistingUserFailedLoginsSensorPlugin.php
Get the verbose results of the attempts per ip.
UserFailedLoginsSensorPlugin::verboseResultCounting in src/Plugin/monitoring/SensorPlugin/UserFailedLoginsSensorPlugin.php
Get the verbose results of the attempts per user.
1 method overrides DatabaseAggregatorSensorPlugin::buildTableRows()
TemporaryFilesUsagesSensorPlugin::buildTableRows in src/Plugin/monitoring/SensorPlugin/TemporaryFilesUsagesSensorPlugin.php
Builds the rows of a table.

File

src/Plugin/monitoring/SensorPlugin/DatabaseAggregatorSensorPlugin.php, line 353
Contains \Drupal\monitoring\Plugin\monitoring\SensorPlugin\DatabaseAggregatorSensorPlugin.

Class

DatabaseAggregatorSensorPlugin
Database aggregator able to query a single db table.

Namespace

Drupal\monitoring\Plugin\monitoring\SensorPlugin

Code

protected function buildTableRows(array $results) {
  $rows = [];
  foreach ($results as $delta => $row) {
    $rows[$delta] = (array) $row;
  }
  return $rows;
}