You are here

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'
profile.routing.yml in ./profile.routing.yml
profile.routing.yml

File

src/Controller/UserController.php, line 26

Class

UserController
Provides the profile UI for users.

Namespace

Drupal\profile\Controller

Code

public function title(ProfileTypeInterface $profile_type) {
  return $profile_type
    ->getDisplayLabel() ?: $profile_type
    ->label();
}