function LayoutForm::submitForm

Same name in other branches
  1. 10 core/modules/navigation/src/Form/LayoutForm.php \Drupal\navigation\Form\LayoutForm::submitForm()

Overrides FormInterface::submitForm

File

core/modules/navigation/src/Form/LayoutForm.php, line 87

Class

LayoutForm
Defines a form for configuring navigation blocks.

Namespace

Drupal\navigation\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) : void {
    $this->sectionStorage
        ->save();
    $this->saveTasks($form_state, new TranslatableMarkup('Saved navigation blocks'));
}

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