You are here

public function ConsentAgreementRevisionRevertForm::buildForm in General Data Protection Regulation 8

Same name and namespace in other branches
  1. 8.2 modules/gdpr_consent/src/Form/ConsentAgreementRevisionRevertForm.php \Drupal\gdpr_consent\Form\ConsentAgreementRevisionRevertForm::buildForm()
  2. 3.0.x modules/gdpr_consent/src/Form/ConsentAgreementRevisionRevertForm.php \Drupal\gdpr_consent\Form\ConsentAgreementRevisionRevertForm::buildForm()

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

modules/gdpr_consent/src/Form/ConsentAgreementRevisionRevertForm.php, line 103

Class

ConsentAgreementRevisionRevertForm
Provides a form for reverting a Consent Agreement revision.

Namespace

Drupal\gdpr_consent\Form

Code

public function buildForm(array $form, FormStateInterface $form_state, $gdpr_consent_agreement_revision = NULL) {
  $this->revision = $this->consentAgreementStorage
    ->loadRevision($gdpr_consent_agreement_revision);
  $form = parent::buildForm($form, $form_state);
  return $form;
}