protected function TopController::buildMainTableRows in MongoDB 8.2
Build the main table rows.
Parameters
array[] $counts: The array of counts per 403/404 page.
Return value
array A render array for a table.
1 call to TopController::buildMainTableRows()
- TopController::buildMainTable in modules/
mongodb_watchdog/ src/ Controller/ TopController.php - Build the main table.
File
- modules/
mongodb_watchdog/ src/ Controller/ TopController.php, line 129
Class
- TopController
- The Top403/Top404 controllers.
Namespace
Drupal\mongodb_watchdog\ControllerCode
protected function buildMainTableRows(array $counts) : array {
$rows = [];
/** @var \Drupal\mongodb_watchdog\Controller\TopResult $result */
foreach ($counts as $result) {
$row = [
$result->count,
$result->uri,
];
$rows[] = $row;
}
return $rows;
}