You are here

public function ProfileController::addPageTitle in Profile 2 8

The _title_callback for the entity.profile.add_form route.

Parameters

\Drupal\profile\ProfileTypeInterface $profile_type: The current profile type.

Return value

string The page title.

File

src/Controller/ProfileController.php, line 64
Contains \Drupal\profile\Controller\ProfileController.

Class

ProfileController
Returns responses for ProfileController routes.

Namespace

Drupal\profile\Controller

Code

public function addPageTitle(ProfileTypeInterface $profile_type) {

  // @todo: edit profile uses this form too?
  return $this
    ->t('Create @label', array(
    '@label' => $profile_type
      ->label(),
  ));
}