You are here

protected function TopController::buildMainTable in MongoDB 8.2

Build the main table.

Parameters

array $rows: The event data.

Return value

array A render array for the main table.

1 call to TopController::buildMainTable()
TopController::build in modules/mongodb_watchdog/src/Controller/TopController.php
Controller.

File

modules/mongodb_watchdog/src/Controller/TopController.php, line 96

Class

TopController
The Top403/Top404 controllers.

Namespace

Drupal\mongodb_watchdog\Controller

Code

protected function buildMainTable(array $rows) : array {
  $ret = [
    '#header' => $this
      ->buildMainTableHeader(),
    '#rows' => $this
      ->buildMainTableRows($rows),
    '#type' => 'table',
  ];
  return $ret;
}