public function SimpleMegaMenuRevisionRevertForm::buildForm in Simple Mega Menu 8
Same name and namespace in other branches
- 2.0.x src/Form/SimpleMegaMenuRevisionRevertForm.php \Drupal\simple_megamenu\Form\SimpleMegaMenuRevisionRevertForm::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 SimpleMegaMenuRevisionRevertForm::buildForm()
- SimpleMegaMenuRevisionRevertTranslationForm::buildForm in src/
Form/ SimpleMegaMenuRevisionRevertTranslationForm.php - Form constructor.
1 method overrides SimpleMegaMenuRevisionRevertForm::buildForm()
- SimpleMegaMenuRevisionRevertTranslationForm::buildForm in src/
Form/ SimpleMegaMenuRevisionRevertTranslationForm.php - Form constructor.
File
- src/
Form/ SimpleMegaMenuRevisionRevertForm.php, line 114
Class
- SimpleMegaMenuRevisionRevertForm
- Provides a form for reverting a Simple mega menu revision.
Namespace
Drupal\simple_megamenu\FormCode
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;
}