You are here

WebformAccessGroupDeleteForm.php in Webform 6.x

Same filename and directory in other branches
  1. 8.5 modules/webform_access/src/WebformAccessGroupDeleteForm.php

File

modules/webform_access/src/WebformAccessGroupDeleteForm.php
View source
<?php

namespace Drupal\webform_access;

use Drupal\webform\Form\WebformConfigEntityDeleteFormBase;

/**
 * Provides a delete webform access group form.
 */
class WebformAccessGroupDeleteForm extends WebformConfigEntityDeleteFormBase {

  /**
   * {@inheritdoc}
   */
  protected $confirmCheckbox = FALSE;

  /**
   * {@inheritdoc}
   */
  public function getDescription() {
    return [
      'title' => [
        '#markup' => $this
          ->t('This action will…'),
      ],
      'list' => [
        '#theme' => 'item_list',
        '#items' => [
          $this
            ->t('Remove configuration'),
          $this
            ->t('Affect any fields which use this access group'),
        ],
      ],
    ];
  }

}

Classes

Namesort descending Description
WebformAccessGroupDeleteForm Provides a delete webform access group form.