You are here

public function SupportTicketRevisionRevertForm::buildForm in Support Ticketing System 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

modules/support_ticket/src/Form/SupportTicketRevisionRevertForm.php, line 93
Contains \Drupal\support_ticket\Form\SupportTicketRevisionRevertForm.

Class

SupportTicketRevisionRevertForm
Provides a form for reverting a support ticket revision.

Namespace

Drupal\support_ticket\Form

Code

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