You are here

public function WebformResultsClearForm::getQuestion in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Form/WebformResultsClearForm.php \Drupal\webform\Form\WebformResultsClearForm::getQuestion()

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/WebformResultsClearForm.php, line 22

Class

WebformResultsClearForm
Webform for webform results clear webform.

Namespace

Drupal\webform\Form

Code

public function getQuestion() {
  $t_args = [
    '%label' => $this
      ->getLabel(),
  ];
  return $this
    ->t('Clear all %label submissions?', $t_args);
}