You are here

public function DetailController::buildTitle in MongoDB 8.2

Title callback for mongodb_watchdog.detail.

Parameters

\Drupal\mongodb_watchdog\EventTemplate $eventTemplate: The event template for which the title is built.

Return value

\Drupal\Component\Render\MarkupInterface The page title.

1 string reference to 'DetailController::buildTitle'
mongodb_watchdog.routing.yml in modules/mongodb_watchdog/mongodb_watchdog.routing.yml
modules/mongodb_watchdog/mongodb_watchdog.routing.yml

File

modules/mongodb_watchdog/src/Controller/DetailController.php, line 154

Class

DetailController
The controller for the event detail page.

Namespace

Drupal\mongodb_watchdog\Controller

Code

public function buildTitle(EventTemplate $eventTemplate) : MarkupInterface {
  return $this
    ->t('MongoDB events: "@template"', [
    '@template' => $eventTemplate->message,
  ]);
}