You are here

public function FieldValidationRuleDeleteForm::buildForm in Field Validation 8

Form constructor.

Parameters

array $form: An associative array containing the structure of the form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Return value

array The form structure.

Overrides ConfirmFormBase::buildForm

File

src/Form/FieldValidationRuleDeleteForm.php, line 59

Class

FieldValidationRuleDeleteForm
Form for deleting a fieldValidationRule.

Namespace

Drupal\field_validation\Form

Code

public function buildForm(array $form, FormStateInterface $form_state, FieldValidationRuleSetInterface $field_validation_rule_set = NULL, $field_validation_rule = NULL) {
  $this->fieldValidationRuleSet = $field_validation_rule_set;
  $this->fieldValidationRule = $this->fieldValidationRuleSet
    ->getFieldValidationRule($field_validation_rule);
  return parent::buildForm($form, $form_state);
}