You are here

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

Same name and namespace in other branches
  1. 8.4 ldap_query/src/Form/QueryEntityDeleteForm.php \Drupal\ldap_query\Form\QueryEntityDeleteForm::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_query/src/Form/QueryEntityDeleteForm.php, line 17

Class

QueryEntityDeleteForm
Builds the form to delete LDAP Queries entities.

Namespace

Drupal\ldap_query\Form

Code

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