public function UserController::title in Profile 8
Builds a page title for the given profile type.
Parameters
\Drupal\profile\Entity\ProfileTypeInterface $profile_type: The profile type.
Return value
string The page title.
1 string reference to 'UserController::title'
File
- src/
Controller/ UserController.php, line 26
Class
- UserController
- Provides the profile UI for users.
Namespace
Drupal\profile\ControllerCode
public function title(ProfileTypeInterface $profile_type) {
return $profile_type
->getDisplayLabel() ?: $profile_type
->label();
}