| @@ 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. |
|
| @@ 221-229 (lines=9) @@ | ||
| 218 | * @return \Drupal\mongodb_watchdog\Event[] |
|
| 219 | * The data array. |
|
| 220 | */ |
|
| 221 | protected function getRowData(Request $request, $uniqueId) { |
|
| 222 | $count = $this->watchdog->requestEventsCount($uniqueId); |
|
| 223 | $page = $this->setupPager($request, $count); |
|
| 224 | $skip = $page * $this->itemsPerPage; |
|
| 225 | $height = $this->itemsPerPage; |
|
| 226 | ||
| 227 | $events = $this->watchdog->requestEvents($uniqueId, $skip, $height); |
|
| 228 | return $events; |
|
| 229 | } |
|
| 230 | ||
| 231 | /** |
|
| 232 | * Build the heading rows on the per-request event occurrences page. |
|