You are here

public function TrackerController::getTitle in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/tracker/src/Controller/TrackerController.php \Drupal\tracker\Controller\TrackerController::getTitle()
  2. 9 core/modules/tracker/src/Controller/TrackerController.php \Drupal\tracker\Controller\TrackerController::getTitle()

Title callback for the tracker.user_tab route.

Parameters

\Drupal\user\UserInterface $user: The user.

Return value

string The title.

1 string reference to 'TrackerController::getTitle'
tracker.routing.yml in core/modules/tracker/tracker.routing.yml
core/modules/tracker/tracker.routing.yml

File

core/modules/tracker/src/Controller/TrackerController.php, line 102

Class

TrackerController
Controller for tracker pages.

Namespace

Drupal\tracker\Controller

Code

public function getTitle(UserInterface $user) {
  return $user
    ->getDisplayName();
}