public function FieldEncryptDecryptForm::buildForm in Field Encryption 8.2
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/ FieldEncryptDecryptForm.php, line 94
Class
- FieldEncryptDecryptForm
- Confirmation form for removing encryption on field.
Namespace
Drupal\field_encrypt\FormCode
public function buildForm(array $form, FormStateInterface $form_state, $entity_type = NULL, $field_name = NULL) {
$this->entityType = $entity_type;
$this->fieldName = $field_name;
return parent::buildForm($form, $form_state);
}