function ConfirmDeleteMultiple::getQuestion

Same name in other branches
  1. 9 core/modules/comment/src/Form/ConfirmDeleteMultiple.php \Drupal\comment\Form\ConfirmDeleteMultiple::getQuestion()
  2. 8.9.x core/modules/comment/src/Form/ConfirmDeleteMultiple.php \Drupal\comment\Form\ConfirmDeleteMultiple::getQuestion()
  3. 10 core/modules/comment/src/Form/ConfirmDeleteMultiple.php \Drupal\comment\Form\ConfirmDeleteMultiple::getQuestion()

Overrides DeleteMultipleForm::getQuestion

File

core/modules/comment/src/Form/ConfirmDeleteMultiple.php, line 18

Class

ConfirmDeleteMultiple
Provides the comment multiple delete confirmation form.

Namespace

Drupal\comment\Form

Code

public function getQuestion() {
    return $this->formatPlural(count($this->selection), 'Are you sure you want to delete this comment and all its children?', 'Are you sure you want to delete these comments and all their children?');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.