public function MiconMenuConfigForm::submitForm in Micon 8
Same name and namespace in other branches
- 2.x micon_menu/src/Form/MiconMenuConfigForm.php \Drupal\micon_menu\Form\MiconMenuConfigForm::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
- micon_menu/
src/ Form/ MiconMenuConfigForm.php, line 50
Class
- MiconMenuConfigForm
- Class MiconMenuConfigForm.
Namespace
Drupal\micon_menu\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
parent::submitForm($form, $form_state);
$this
->config('micon_menu.config')
->set('packages', $form_state
->getValue('packages'))
->save();
drupal_flush_all_caches();
}