You are here

public function WebformSubmissionDeleteForm::getDescription in Webform 6.x

Same name and namespace in other branches
  1. 8.5 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 121

Class

WebformSubmissionDeleteForm
Provides a confirmation webform for deleting a webform submission.

Namespace

Drupal\webform\Form

Code

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'),
      ],
    ],
  ];
}