public function UcWishlistConfigForm::submitForm in UC Wish List 8
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
- src/
Form/ UcWishlistConfigForm.php, line 89
Class
Namespace
Drupal\uc_wishlist\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$values = $form_state
->getValues();
$this
->config('uc_wishlist.settings')
->set('default_title', $values['default_title'])
->set('save_address', $values['save_address'])
->set('default_private', $values['default_private'])
->set('allow_private', $values['allow_private'])
->set('show_all', $values['show_all'])
->set('out_of_stock', $values['out_of_stock'])
->set('default_from', $values['default_from'])
->save();
parent::submitForm($form, $form_state);
}