function MenuForm::submitForm

Same name and namespace in other branches
  1. 11.x 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. 8.9.x core/modules/menu_ui/src/MenuForm.php \Drupal\menu_ui\MenuForm::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.