You are here

public function SimpleMegaMenuRevisionDeleteForm::buildForm in Simple Mega Menu 8

Same name and namespace in other branches
  1. 2.0.x src/Form/SimpleMegaMenuRevisionDeleteForm.php \Drupal\simple_megamenu\Form\SimpleMegaMenuRevisionDeleteForm::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/SimpleMegaMenuRevisionDeleteForm.php, line 107

Class

SimpleMegaMenuRevisionDeleteForm
Provides a form for deleting a Simple mega menu revision.

Namespace

Drupal\simple_megamenu\Form

Code

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