You are here

public function ScheduleRevisionDeleteForm::buildForm in Business Rules 8

Same name and namespace in other branches
  1. 2.x src/Form/ScheduleRevisionDeleteForm.php \Drupal\business_rules\Form\ScheduleRevisionDeleteForm::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/ScheduleRevisionDeleteForm.php, line 96

Class

ScheduleRevisionDeleteForm
Provides a form for deleting 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;
}