You are here

public function ScheduleRevisionRevertForm::buildForm in Business Rules 2.x

Same name and namespace in other branches
  1. 8 src/Form/ScheduleRevisionRevertForm.php \Drupal\business_rules\Form\ScheduleRevisionRevertForm::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 ScheduleRevisionRevertForm::buildForm()
ScheduleRevisionRevertTranslationForm::buildForm in src/Form/ScheduleRevisionRevertTranslationForm.php
Form constructor.
1 method overrides ScheduleRevisionRevertForm::buildForm()
ScheduleRevisionRevertTranslationForm::buildForm in src/Form/ScheduleRevisionRevertTranslationForm.php
Form constructor.

File

src/Form/ScheduleRevisionRevertForm.php, line 103

Class

ScheduleRevisionRevertForm
Provides a form for reverting a Schedule revision.

Namespace

Drupal\business_rules\Form

Code

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