function LayoutForm::submitForm

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

Form submission handler.

Parameters

array $form: An associative array containing the structure of the form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Overrides FormInterface::submitForm

File

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

Class

LayoutForm
Defines a form for configuring navigation blocks.

Namespace

Drupal\navigation\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) : void {
  $user_input = $form_state->getUserInput();
  if (isset($user_input['save'])) {
    $this->save($form, $form_state);
  }
}

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