modules/mongodb_watchdog/src/Controller/OverviewController.php 1 location
|
@@ 118-132 (lines=15) @@
|
| 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 |
|
? [ |
| 124 |
|
'#markup' => t('No event found in logger.'), |
| 125 |
|
'#prefix' => '<div class="mongodb_watchdog__message">', |
| 126 |
|
'#suffix' => '</div>', |
| 127 |
|
] |
| 128 |
|
: $this->buildMainTable($rows); |
| 129 |
|
|
| 130 |
|
$ret = $this->buildDefaults($main, $top); |
| 131 |
|
return $ret; |
| 132 |
|
} |
| 133 |
|
|
| 134 |
|
/** |
| 135 |
|
* Build the main table. |
modules/mongodb_watchdog/src/Controller/TopController.php 1 location
|
@@ 65-79 (lines=15) @@
|
| 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 |
|
? [ |
| 71 |
|
'#markup' => t('No "%type" message found', ['%type' => $type]), |
| 72 |
|
'#prefix' => '<div class="mongodb_watchdog__message">', |
| 73 |
|
'#suffix' => '</div>', |
| 74 |
|
] |
| 75 |
|
: $this->buildMainTable($rows); |
| 76 |
|
|
| 77 |
|
$ret = $this->buildDefaults($main, $top); |
| 78 |
|
return $ret; |
| 79 |
|
} |
| 80 |
|
|
| 81 |
|
/** |
| 82 |
|
* Build the main table. |