You are here

public function DataPolicyRevisionDeleteForm::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

File

src/Form/DataPolicyRevisionDeleteForm.php, line 109

Class

DataPolicyRevisionDeleteForm
Provides a form for deleting 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);
}