You are here

public function DataPolicyRevisionRevertForm::buildForm in Data Policy 8

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

1 call to DataPolicyRevisionRevertForm::buildForm()
DataPolicyRevisionRevertTranslationForm::buildForm in src/Form/DataPolicyRevisionRevertTranslationForm.php
Form constructor.
1 method overrides DataPolicyRevisionRevertForm::buildForm()
DataPolicyRevisionRevertTranslationForm::buildForm in src/Form/DataPolicyRevisionRevertTranslationForm.php
Form constructor.

File

src/Form/DataPolicyRevisionRevertForm.php, line 116

Class

DataPolicyRevisionRevertForm
Provides a form for reverting a Data policy revision.

Namespace

Drupal\data_policy\Form

Code

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