You are here

public function DeleteMultiple::getQuestion in Message 8

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 65

Class

DeleteMultiple
Provides a message deletion confirmation form.

Namespace

Drupal\message\Form

Code

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