You are here

public function NiceMenusSettingsForm::submitForm in Nice Menus 8

Parameters

array $form:

\Drupal\Core\Form\FormStateInterface $form_state:

Overrides ConfigFormBase::submitForm

File

src/Form/NiceMenusSettingsForm.php, line 100

Class

NiceMenusSettingsForm
Provides a nice menus settings form.

Namespace

Drupal\nice_menus\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $this
    ->config('nice_menus.settings')
    ->set('nice_menus_sf_delay', $form_state
    ->getValue('nice_menus_sf_delay'))
    ->set('nice_menus_js', $form_state
    ->getValue('nice_menus_js'))
    ->set('nice_menus_sf_speed', $form_state
    ->getValue('nice_menus_sf_speed'))
    ->set('nice_menus_default_css', $form_state
    ->getValue('nice_menus_default_css'))
    ->save();
  parent::submitForm($form, $form_state);
}