You are here

public function DeleteMultiple::getQuestion in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/node/src/Form/DeleteMultiple.php \Drupal\node\Form\DeleteMultiple::getQuestion()

Returns the question to ask the user.

Return value

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

Overrides ConfirmFormInterface::getQuestion

File

core/modules/node/src/Form/DeleteMultiple.php, line 77
Contains \Drupal\node\Form\DeleteMultiple.

Class

DeleteMultiple
Provides a node deletion confirmation form.

Namespace

Drupal\node\Form

Code

public function getQuestion() {
  return $this
    ->formatPlural(count($this->nodeInfo), 'Are you sure you want to delete this item?', 'Are you sure you want to delete these items?');
}