You are here

FieldValidationRuleSetDeleteForm.php in Field Validation 8

File

src/Form/FieldValidationRuleSetDeleteForm.php
View source
<?php

namespace Drupal\field_validation\Form;

use Drupal\Core\Entity\EntityDeleteForm;
use Drupal\Core\Form\FormStateInterface;

/**
 * Creates a form to delete FieldValidationRuleSet.
 */
class FieldValidationRuleSetDeleteForm extends EntityDeleteForm {

  /**
   * {@inheritdoc}
   */
  public function getQuestion() {
    return $this
      ->t('Optionally select a field validation rule set before deleting %ruleset', [
      '%ruleset' => $this->entity
        ->label(),
    ]);
  }

  /**
   * {@inheritdoc}
   */
  public function getDescription() {
    return $this
      ->t('If this field validation rule set is in use on the site, this field validation rule set will be permanently deleted.');
  }

  /**
   * {@inheritdoc}
   */
  public function form(array $form, FormStateInterface $form_state) {
    return parent::form($form, $form_state);
  }

  /**
   * {@inheritdoc}
   */
  public function submitForm(array &$form, FormStateInterface $form_state) {
    parent::submitForm($form, $form_state);
  }

}

Classes

Namesort descending Description
FieldValidationRuleSetDeleteForm Creates a form to delete FieldValidationRuleSet.