You are here

WebformAccessTypeDeleteForm.php in Webform 6.x

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

File

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

namespace Drupal\webform_access;

use Drupal\webform\Form\WebformConfigEntityDeleteFormBase;

/**
 * Provides a delete webform access type form.
 */
class WebformAccessTypeDeleteForm 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 access groups which use this type'),
        ],
      ],
    ];
  }

}

Classes

Namesort descending Description
WebformAccessTypeDeleteForm Provides a delete webform access type form.