function MenuForm::submitForm

Same name in other branches
  1. 9 core/modules/menu_ui/src/MenuForm.php \Drupal\menu_ui\MenuForm::submitForm()
  2. 10 core/modules/menu_ui/src/MenuForm.php \Drupal\menu_ui\MenuForm::submitForm()
  3. 11.x core/modules/menu_ui/src/MenuForm.php \Drupal\menu_ui\MenuForm::submitForm()

Overrides EntityForm::submitForm

File

core/modules/menu_ui/src/MenuForm.php, line 197

Class

MenuForm
Base form for menu edit forms.

Namespace

Drupal\menu_ui

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
    parent::submitForm($form, $form_state);
    if (!$this->entity
        ->isNew() || $this->entity
        ->isLocked()) {
        $this->submitOverviewForm($form, $form_state);
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.