public function WebformSubmissionDeleteForm::getQuestion in Webform 8.5
Same name and namespace in other branches
- 6.x 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 110
Class
- WebformSubmissionDeleteForm
- Provides a confirmation webform for deleting a webform submission.
Namespace
Drupal\webform\FormCode
public function getQuestion() {
$t_args = [
'%label' => $this
->getEntity()
->label(),
];
return $this
->t('Delete %label?', $t_args);
}