You are here

protected function ControllerBase::buildEmpty in MongoDB 8.2

Build markup for a message about the lack of results.

Parameters

\Drupal\Core\StringTranslation\TranslatableMarkup $markup: The message proper.

Return value

array A render array for a message.

4 calls to ControllerBase::buildEmpty()
DetailController::build in modules/mongodb_watchdog/src/Controller/DetailController.php
Controller.
OverviewController::build in modules/mongodb_watchdog/src/Controller/OverviewController.php
Controller.
RequestController::build in modules/mongodb_watchdog/src/Controller/RequestController.php
Controller.
TopController::build in modules/mongodb_watchdog/src/Controller/TopController.php
Controller.

File

modules/mongodb_watchdog/src/Controller/ControllerBase.php, line 105

Class

ControllerBase
Base controller class for paged reports.

Namespace

Drupal\mongodb_watchdog\Controller

Code

protected function buildEmpty(TranslatableMarkup $markup) : array {
  $ret = [
    '#markup' => $markup,
    '#prefix' => '<div class="mongodb-watchdog__message">',
    '#suffix' => '</div>',
  ];
  return $ret;
}