public function CatalogSettingsForm::submitForm in Ubercart 8.4
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
- uc_catalog/
src/ Form/ CatalogSettingsForm.php, line 94
Class
- CatalogSettingsForm
- Configure catalog settings for this site.
Namespace
Drupal\uc_catalog\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->config('uc_catalog.settings')
->set('display', $form_state
->getValue('uc_catalog_display'))
->set('vocabulary', $form_state
->getValue('uc_catalog_vid'))
->set('breadcrumb', $form_state
->getValue('uc_catalog_breadcrumb'))
->save();
parent::submitForm($form, $form_state);
}