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()

Returns the question to ask the user.

Return value

string The form question. The page title will be set to this value.

Overrides ConfirmFormBase::getQuestion

File

drupal/core/modules/action/lib/Drupal/action/Form/DeleteForm.php, line 28
Contains \Drupal\action\Form\DeleteForm.

Class

DeleteForm
Builds a form to delete an action.

Namespace

Drupal\action\Form

Code

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