You are here

public function MiconMenuConfigForm::submitForm in Micon 8

Same name and namespace in other branches
  1. 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\Form

Code

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();
}