You are here

public function ContactStorageController::contactEditFormTitle in Contact Storage 8

Edit route title callback.

Parameters

\Drupal\contact\ContactFormInterface $contact_form: The contact form.

Return value

string The title of the contact form.

File

src/Controller/ContactStorageController.php, line 70

Class

ContactStorageController
Controller routines for contact storage routes.

Namespace

Drupal\contact_storage\Controller

Code

public function contactEditFormTitle(ContactFormInterface $contact_form) {
  return $this
    ->t('Edit @label', [
    '@label' => $contact_form
      ->label(),
  ]);
}