You are here

public function OpignoAnswerRevisionRevertForm::buildForm in Opigno module 3.x

Same name and namespace in other branches
  1. 8 src/Form/OpignoAnswerRevisionRevertForm.php \Drupal\opigno_module\Form\OpignoAnswerRevisionRevertForm::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

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

File

src/Form/OpignoAnswerRevisionRevertForm.php, line 103

Class

OpignoAnswerRevisionRevertForm
Provides a form for reverting a Answer revision.

Namespace

Drupal\opigno_module\Form

Code

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