You are here

public function DeleteMultiple::getQuestion in Entity API 8.0

Returns the question to ask the user.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup The form question. The page title will be set to this value.

Overrides ConfirmFormInterface::getQuestion

File

src/Form/DeleteMultiple.php, line 96
Contains \Drupal\entity\Form\DeleteMultiple.

Class

DeleteMultiple
Provides an entities deletion confirmation form.

Namespace

Drupal\entity\Form

Code

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