You are here

public function IssueRevisionRevertForm::buildForm in Drupal PM (Project Management) 4.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

modules/pm_issue/src/Form/IssueRevisionRevertForm.php, line 89

Class

IssueRevisionRevertForm
Provides a form for reverting a Issue revision.

Namespace

Drupal\pm_issue\Form

Code

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