You are here

WebformEntityDeleteForm.php in Webform 8.5

Same filename and directory in other branches
  1. 6.x src/WebformEntityDeleteForm.php

Namespace

Drupal\webform

File

src/WebformEntityDeleteForm.php
View source
<?php

namespace Drupal\webform;

use Drupal\webform\Form\WebformConfigEntityDeleteFormBase;

/**
 * Provides a delete webform form.
 */
class WebformEntityDeleteForm extends WebformConfigEntityDeleteFormBase {

  /**
   * {@inheritdoc}
   */
  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'),
        ],
      ],
    ];
  }

}

Classes

Namesort descending Description
WebformEntityDeleteForm Provides a delete webform form.