public function MenuLinkResetForm::buildForm

Implements \Drupal\Core\Form\FormInterface::buildForm().

Overrides ConfirmFormBase::buildForm

File

drupal/core/modules/menu/lib/Drupal/menu/Form/MenuLinkResetForm.php, line 63
Contains \Drupal\menu\Form\MenuLinkResetForm.

Class

MenuLinkResetForm
Defines a confirmation form for resetting a single modified menu link.

Namespace

Drupal\menu\Form

Code

public function buildForm(array $form, array &$form_state, MenuLink $menu_link = NULL) {
  $this->menuLink = $menu_link;
  return parent::buildForm($form, $form_state);
}