You are here

public function MerciLineItemRevisionDeleteForm::buildForm in MERCI (Manage Equipment Reservations, Checkout and Inventory) 8.2

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/merci_line_item/src/Form/MerciLineItemRevisionDeleteForm.php, line 96

Class

MerciLineItemRevisionDeleteForm
Provides a form for deleting a Merci Line Item revision.

Namespace

Drupal\merci_line_item\Form

Code

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