| @@ 179-190 (lines=12) @@ | ||
| 176 | * @return \Drupal\mongodb_watchdog\Event[] |
|
| 177 | * The data array. |
|
| 178 | */ |
|
| 179 | protected function getRowData(Request $request, EventTemplate $eventTemplate) { |
|
| 180 | $count = $this->watchdog->eventCount($eventTemplate); |
|
| 181 | $page = $this->setupPager($request, $count); |
|
| 182 | $skip = $page * $this->itemsPerPage; |
|
| 183 | $limit = $this->itemsPerPage; |
|
| 184 | ||
| 185 | $rows = $this->eventController |
|
| 186 | ->find($eventTemplate, $skip, $limit) |
|
| 187 | ->toArray(); |
|
| 188 | ||
| 189 | return $rows; |
|
| 190 | } |
|
| 191 | ||
| 192 | /** |
|
| 193 | * Build the heading rows on the per-template event occurrences page. |
|
| @@ 215-223 (lines=9) @@ | ||
| 212 | * @return \Drupal\mongodb_watchdog\Event[] |
|
| 213 | * The data array. |
|
| 214 | */ |
|
| 215 | protected function getRowData(Request $request, $uniqueId) { |
|
| 216 | $count = $this->watchdog->requestEventsCount($uniqueId); |
|
| 217 | $page = $this->setupPager($request, $count); |
|
| 218 | $skip = $page * $this->itemsPerPage; |
|
| 219 | $height = $this->itemsPerPage; |
|
| 220 | ||
| 221 | $events = $this->watchdog->requestEvents($uniqueId, $skip, $height); |
|
| 222 | return $events; |
|
| 223 | } |
|
| 224 | ||
| 225 | /** |
|
| 226 | * Build the heading rows on the per-request event occurrences page. |
|