You are here

public function RedirectDeleteMultipleForm::getQuestion in Redirect 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/RedirectDeleteMultipleForm.php, line 89

Class

RedirectDeleteMultipleForm
Provides a redirect deletion confirmation form.

Namespace

Drupal\redirect\Form

Code

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