public function AdminToolbarToolsSettingsForm::submitForm in Admin Toolbar 8.2
Same name and namespace in other branches
- 3.x admin_toolbar_tools/src/Form/AdminToolbarToolsSettingsForm.php \Drupal\admin_toolbar_tools\Form\AdminToolbarToolsSettingsForm::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
- admin_toolbar_tools/
src/ Form/ AdminToolbarToolsSettingsForm.php, line 101
Class
- AdminToolbarToolsSettingsForm
- Class AdminToolbarToolsSettingsForm.
Namespace
Drupal\admin_toolbar_tools\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->config('admin_toolbar_tools.settings')
->set('max_bundle_number', $form_state
->getValue('max_bundle_number'))
->set('hoverintent_functionality', $form_state
->getValue('hoverintent_functionality'))
->save();
parent::submitForm($form, $form_state);
$this->cacheMenu
->invalidateAll();
$this->menuLinkManager
->rebuild();
}