public function ConsentAgreementRevisionRevertForm::buildForm in General Data Protection Regulation 8.2
Same name and namespace in other branches
- 8 modules/gdpr_consent/src/Form/ConsentAgreementRevisionRevertForm.php \Drupal\gdpr_consent\Form\ConsentAgreementRevisionRevertForm::buildForm()
- 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 104
Class
- ConsentAgreementRevisionRevertForm
- Provides a form for reverting a Consent Agreement revision.
Namespace
Drupal\gdpr_consent\FormCode
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;
}