protected function DeleteForm::getQuestion

Same name in this branch
  1. 8.x drupal/core/modules/forum/lib/Drupal/forum/Form/DeleteForm.php \Drupal\forum\Form\DeleteForm::getQuestion()
  2. 8.x drupal/core/modules/contact/lib/Drupal/contact/Form/DeleteForm.php \Drupal\contact\Form\DeleteForm::getQuestion()
  3. 8.x drupal/core/modules/views_ui/lib/Drupal/views_ui/Form/DeleteForm.php \Drupal\views_ui\Form\DeleteForm::getQuestion()
  4. 8.x drupal/core/modules/path/lib/Drupal/path/Form/DeleteForm.php \Drupal\path\Form\DeleteForm::getQuestion()
  5. 8.x drupal/core/modules/action/lib/Drupal/action/Form/DeleteForm.php \Drupal\action\Form\DeleteForm::getQuestion()

Implements \Drupal\Core\Form\ConfirmFormBase::getQuestion().

Overrides ConfirmFormBase::getQuestion

File

drupal/core/modules/contact/lib/Drupal/contact/Form/DeleteForm.php, line 35
Contains \Drupal\contact\Form\DeleteForm.

Class

DeleteForm
Builds the form to delete a contact category.

Namespace

Drupal\contact\Form

Code

protected function getQuestion() {
  return t('Are you sure you want to delete %name?', array(
    '%name' => $this->contactCategory
      ->label(),
  ));
}