function MenuLinkDefaultForm::submitConfigurationForm

Same name in other branches
  1. 9 core/lib/Drupal/Core/Menu/Form/MenuLinkDefaultForm.php \Drupal\Core\Menu\Form\MenuLinkDefaultForm::submitConfigurationForm()
  2. 10 core/lib/Drupal/Core/Menu/Form/MenuLinkDefaultForm.php \Drupal\Core\Menu\Form\MenuLinkDefaultForm::submitConfigurationForm()
  3. 11.x core/lib/Drupal/Core/Menu/Form/MenuLinkDefaultForm.php \Drupal\Core\Menu\Form\MenuLinkDefaultForm::submitConfigurationForm()

Overrides PluginFormInterface::submitConfigurationForm

File

core/lib/Drupal/Core/Menu/Form/MenuLinkDefaultForm.php, line 180

Class

MenuLinkDefaultForm
Provides an edit form for static menu links.

Namespace

Drupal\Core\Menu\Form

Code

public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
    $new_definition = $this->extractFormValues($form, $form_state);
    return $this->menuLinkManager
        ->updateDefinition($this->menuLink
        ->getPluginId(), $new_definition);
}

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