3 namespace Drupal\comment\Form;
5 use Drupal\Core\Entity\Form\DeleteMultipleForm as EntityDeleteMultipleForm;
9 * Provides the comment multiple delete confirmation form.
13 class ConfirmDeleteMultiple extends EntityDeleteMultipleForm {
18 public function getQuestion() {
19 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?');
25 public function getCancelUrl() {
26 return new Url('comment.admin');
32 protected function getDeletedMessage($count) {
33 return $this->formatPlural($count, 'Deleted @count comment.', 'Deleted @count comments.');
39 protected function getInaccessibleMessage($count) {
40 return $this->formatPlural($count, "@count comment has not been deleted because you do not have the necessary permissions.", "@count comments have not been deleted because you do not have the necessary permissions.");