You are here

public function DecryptFieldForm::buildForm in Field Encryption 3.0.x

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/DecryptFieldForm.php, line 104

Class

DecryptFieldForm
Confirmation form for removing encryption on field.

Namespace

Drupal\field_encrypt\Form

Code

public function buildForm(array $form, FormStateInterface $form_state, $entity_type = NULL, $field_name = NULL, $base_field = FALSE) {
  $this->entityType = $entity_type;
  $this->fieldName = $field_name;
  $this->baseField = (bool) $base_field;
  return parent::buildForm($form, $form_state);
}