You are here

public function ServerDeleteForm::getQuestion in Lightweight Directory Access Protocol (LDAP) 8.3

Same name and namespace in other branches
  1. 8.4 ldap_servers/src/Form/ServerDeleteForm.php \Drupal\ldap_servers\Form\ServerDeleteForm::getQuestion()

Returns the question to ask the user.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup The form question. The page title will be set to this value.

Overrides ConfirmFormInterface::getQuestion

File

ldap_servers/src/Form/ServerDeleteForm.php, line 17

Class

ServerDeleteForm
Builds the form to delete Server entities.

Namespace

Drupal\ldap_servers\Form

Code

public function getQuestion() {
  return $this
    ->t('Are you sure you want to delete entity %name?', [
    '%name' => $this->entity
      ->label(),
  ]);
}