public function WebformSubmissionDeleteForm::getDescription in Webform 8.5
Same name and namespace in other branches
- 6.x src/Form/WebformSubmissionDeleteForm.php \Drupal\webform\Form\WebformSubmissionDeleteForm::getDescription()
Returns additional text to display as a description.
Return value
\Drupal\Core\StringTranslation\TranslatableMarkup The form description.
Overrides ContentEntityConfirmFormBase::getDescription
1 call to WebformSubmissionDeleteForm::getDescription()
- WebformSubmissionDeleteForm::buildForm in src/
Form/ WebformSubmissionDeleteForm.php - Form constructor.
File
- src/
Form/ WebformSubmissionDeleteForm.php, line 137
Class
- WebformSubmissionDeleteForm
- Provides a confirmation webform for deleting a webform submission.
Namespace
Drupal\webform\FormCode
public function getDescription() {
// @see \Drupal\webform\Form\WebformSubmissionDeleteMultipleForm::getDescription
return [
'title' => [
'#markup' => $this
->t('This action will…'),
],
'list' => [
'#theme' => 'item_list',
'#items' => [
$this
->t('Remove records from the database'),
$this
->t('Delete any uploaded files'),
$this
->t('Cancel all pending actions'),
],
],
];
}