You are here

public function WebformSubmissionDeleteMultipleForm::getDescription in Webform 8.5

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

Returns additional text to display as a description.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup The form description.

Overrides WebformDeleteMultipleFormBase::getDescription

File

src/Form/WebformSubmissionDeleteMultipleForm.php, line 13

Class

WebformSubmissionDeleteMultipleForm
Provides a webform submission deletion confirmation form.

Namespace

Drupal\webform\Form

Code

public function getDescription() {

  // @see \Drupal\webform\Form\WebformSubmissionDeleteForm::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'),
      ],
    ],
  ];
}