You are here

public function WebformEntityDeleteForm::getDescription in Webform 8.5

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

Returns additional text to display as a description.

Return value

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

Overrides WebformConfigEntityDeleteFormBase::getDescription

File

src/WebformEntityDeleteForm.php, line 15

Class

WebformEntityDeleteForm
Provides a delete webform form.

Namespace

Drupal\webform

Code

public function getDescription() {

  // @see \Drupal\webform\Form\WebformEntityDeleteMultipleForm::getDescription
  return [
    'title' => [
      '#markup' => $this
        ->t('This action will…'),
    ],
    'list' => [
      '#theme' => 'item_list',
      '#items' => [
        $this
          ->t('Remove configuration'),
        $this
          ->t('Delete all related submissions'),
        $this
          ->t('Affect any fields or nodes which reference this webform'),
      ],
    ],
  ];
}