/** * {@inheritdoc} */ public function submitForm(array &$form, array &$form_state) { $config = $this->configFactory->get('fullcalendar_options.settings'); foreach ($this->options as $key => $info) { $config->set($key, $form_state['values'][$key]); } $config->save(); parent::submitForm($form, $form_state); }
/** * {@inheritdoc} */ public function submitForm(array &$form, array &$form_state) { $this->configFactory->get('fullcalendar.settings')->set('path', rtrim($form_state['values']['path'], '/'))->set('compression', $form_state['values']['compression'])->save(); parent::submitForm($form, $form_state); }
/** * {@inheritdoc} */ public function submitForm(array &$form, array &$form_state) { parent::submitForm($form, $form_state); // Save the new value. $this->configFactory->get('foobar.settings')->set('foo', $form_state['values']['foo'])->save(); }