protected function DetailController::getRowData in MongoDB 8.2
Obtain the data from the logger.
Parameters
\Symfony\Component\HttpFoundation\Request $request: The current request. Needed for paging.
\Drupal\mongodb_watchdog\EventTemplate $eventTemplate: The template for which to build the detail page.
Return value
\Drupal\mongodb_watchdog\Event[] The data array.
1 call to DetailController::getRowData()
- DetailController::build in modules/
mongodb_watchdog/ src/ Controller/ DetailController.php - Controller.
File
- modules/
mongodb_watchdog/ src/ Controller/ DetailController.php, line 191
Class
- DetailController
- The controller for the event detail page.
Namespace
Drupal\mongodb_watchdog\ControllerCode
protected function getRowData(Request $request, EventTemplate $eventTemplate) : array {
$count = $this->watchdog
->eventCount($eventTemplate);
$page = $this
->setupPager($request, $count);
$skip = $page * $this->itemsPerPage;
$limit = $this->itemsPerPage;
$rows = $this->eventController
->find($eventTemplate, $skip, $limit)
->toArray();
return $rows;
}