You are here

protected function RequestController::getRowData in MongoDB 8.2

Obtain the data from the logger.

Parameters

\Symfony\Component\HttpFoundation\Request $request: The current request. Needed for paging.

string $uniqueId: The request for which to build the detail page.

Return value

\Drupal\mongodb_watchdog\Event[] The data array.

1 call to RequestController::getRowData()
RequestController::build in modules/mongodb_watchdog/src/Controller/RequestController.php
Controller.

File

modules/mongodb_watchdog/src/Controller/RequestController.php, line 219

Class

RequestController
The controller for the request events page.

Namespace

Drupal\mongodb_watchdog\Controller

Code

protected function getRowData(Request $request, string $uniqueId) : array {
  $count = $this->watchdog
    ->requestEventsCount($uniqueId);
  $page = $this
    ->setupPager($request, $count);
  $skip = $page * $this->itemsPerPage;
  $height = $this->itemsPerPage;
  $events = $this->watchdog
    ->requestEvents($uniqueId, $skip, $height);
  return $events;
}