You are here

public function WebformSubmissionDeleteForm::getQuestion in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/Form/WebformSubmissionDeleteForm.php \Drupal\webform\Form\WebformSubmissionDeleteForm::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 ContentEntityDeleteForm::getQuestion

File

src/Form/WebformSubmissionDeleteForm.php, line 94

Class

WebformSubmissionDeleteForm
Provides a confirmation webform for deleting a webform submission.

Namespace

Drupal\webform\Form

Code

public function getQuestion() {
  $t_args = [
    '%label' => $this
      ->getEntity()
      ->label(),
  ];
  return $this
    ->t('Delete %label?', $t_args);
}