modules/mongodb_watchdog/src/Controller/OverviewController.php 1 location
|
@@ 118-128 (lines=11) @@
|
| 115 |
|
* @return array |
| 116 |
|
* A render array. |
| 117 |
|
*/ |
| 118 |
|
public function build(Request $request) { |
| 119 |
|
$top = $this->getTop(); |
| 120 |
|
|
| 121 |
|
$rows = $this->getRowData($request); |
| 122 |
|
$main = empty($rows) |
| 123 |
|
? $this->buildEmpty(t('No event found in logger.')) |
| 124 |
|
: $this->buildMainTable($rows); |
| 125 |
|
|
| 126 |
|
$ret = $this->buildDefaults($main, $top); |
| 127 |
|
return $ret; |
| 128 |
|
} |
| 129 |
|
|
| 130 |
|
/** |
| 131 |
|
* Build the main table. |
modules/mongodb_watchdog/src/Controller/TopController.php 1 location
|
@@ 65-75 (lines=11) @@
|
| 62 |
|
* @return array |
| 63 |
|
* A render array. |
| 64 |
|
*/ |
| 65 |
|
public function build(Request $request, $type) { |
| 66 |
|
$top = $this->getTop(); |
| 67 |
|
|
| 68 |
|
$rows = $this->getRowData($request, $type); |
| 69 |
|
$main = empty($rows) |
| 70 |
|
? $this->buildEmpty(t('No "%type" message found', ['%type' => $type])) |
| 71 |
|
: $this->buildMainTable($rows); |
| 72 |
|
|
| 73 |
|
$ret = $this->buildDefaults($main, $top); |
| 74 |
|
return $ret; |
| 75 |
|
} |
| 76 |
|
|
| 77 |
|
/** |
| 78 |
|
* Build the main table. |