You are here

public function OpignoActivityRevisionRevertForm::buildForm in Opigno module 8

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

src/Form/OpignoActivityRevisionRevertForm.php, line 100

Class

OpignoActivityRevisionRevertForm
Provides a form for reverting a Answer revision.

Namespace

Drupal\opigno_module\Form

Code

public function buildForm(array $form, FormStateInterface $form_state, $opigno_activity = NULL, $opigno_activity_revision = NULL) {
  $this->revision = $opigno_activity_revision;
  $this->entity = $opigno_activity;
  return parent::buildForm($form, $form_state);
}