You are here

public function OverviewController::build in MongoDB 8.2

Controller.

Parameters

\Symfony\Component\HttpFoundation\Request $request: The current request.

Return value

array A render array.

Throws

\ReflectionException

1 string reference to 'OverviewController::build'
mongodb_watchdog.routing.yml in modules/mongodb_watchdog/mongodb_watchdog.routing.yml
modules/mongodb_watchdog/mongodb_watchdog.routing.yml

File

modules/mongodb_watchdog/src/Controller/OverviewController.php, line 130

Class

OverviewController
The controller for the logger overview page.

Namespace

Drupal\mongodb_watchdog\Controller

Code

public function build(Request $request) : array {
  $top = $this
    ->getTop();
  $rows = $this
    ->getRowData($request);
  $main = empty($rows) ? $this
    ->buildEmpty($this
    ->t('No event found in logger.')) : $this
    ->buildMainTable($rows);
  $ret = $this
    ->buildDefaults($main, $top);
  return $ret;
}