You are here

public function AddressBookController::editTitle in Commerce Core 8.2

Builds an edit title for the given profile.

Parameters

\Drupal\profile\Entity\ProfileInterface $profile: The profile.

Return value

string The edit title.

1 string reference to 'AddressBookController::editTitle'
commerce_order.routing.yml in modules/order/commerce_order.routing.yml
modules/order/commerce_order.routing.yml

File

modules/order/src/Controller/AddressBookController.php, line 91

Class

AddressBookController
Provides the address book UI.

Namespace

Drupal\commerce_order\Controller

Code

public function editTitle(ProfileInterface $profile) {
  return $this
    ->t('Edit %label', [
    '%label' => $profile
      ->label(),
  ]);
}