public function SettingsForm::submitForm in bootstrap simple carousel 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/ SettingsForm.php, line 175
Class
- SettingsForm
- Class SettingsForm.
Namespace
Drupal\bootstrap_simple_carousel\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this->configFactory
->getEditable('bootstrap_simple_carousel.settings')
->set('interval', $form_state
->getValue('interval'))
->set('wrap', $form_state
->getValue('wrap'))
->set('pause', $form_state
->getValue('pause'))
->set('indicators', $form_state
->getValue('indicators'))
->set('controls', $form_state
->getValue('controls'))
->set('assets', $form_state
->getValue('assets'))
->set('image_type', $form_state
->getValue('image_type'))
->set('image_style', $form_state
->getValue('image_style'))
->save();
parent::submitForm($form, $form_state);
}