You are here

public function UpdateEncryptionProfileForm::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/UpdateEncryptionProfileForm.php, line 118

Class

UpdateEncryptionProfileForm
Confirmation form for updating encryption on an entity.

Namespace

Drupal\field_encrypt\Form

Code

public function buildForm(array $form, FormStateInterface $form_state, $entity_type = NULL, EncryptionProfile $encryption_profile = NULL) {
  $this->entityType = $this->entityTypeManager
    ->getDefinition($entity_type);
  $this->encryptionProfile = $encryption_profile;
  return parent::buildForm($form, $form_state);
}