public function SettingsForm::submitForm in Menu Link Weight 8
Same name and namespace in other branches
- 8.2 src/Form/SettingsForm.php \Drupal\menu_link_weight\Form\SettingsForm::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 ConfigFormBase::submitForm
File
- src/
Form/ SettingsForm.php, line 60
Class
- SettingsForm
- Configure menu link weight settings.
Namespace
Drupal\menu_link_weight\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->config('menu_link_weight.settings')
->set('menu_parent_form_selector', $form_state
->getValue('menu_parent_form_selector'))
->save();
parent::submitForm($form, $form_state);
}