function TrackerController::getTitle
Same name in other branches
- 8.9.x core/modules/tracker/src/Controller/TrackerController.php \Drupal\tracker\Controller\TrackerController::getTitle()
- 10 core/modules/tracker/src/Controller/TrackerController.php \Drupal\tracker\Controller\TrackerController::getTitle()
- 11.x 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\ControllerCode
public function getTitle(UserInterface $user) {
return $user->getDisplayName();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.