public function SlideOptionsConfigurationForm::submitForm in Nivo Slider 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/ SlideOptionsConfigurationForm.php, line 304
Class
Namespace
Drupal\nivo_slider\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$values = $form_state
->getValues();
$config = $this
->config('nivo_slider.settings');
$config
->set('options.theme', $values['nivo_slider_theme'])
->set('options.image_style', $values['nivo_slider_image_style'])
->set('options.image_style_slide', $values['nivo_slider_image_style_slide'])
->set('options.image_style_thumb', $values['nivo_slider_image_style_thumb'])
->set('options.random_start', $values['nivo_slider_random_start'])
->set('options.start_slide', $values['nivo_slider_start_slide'])
->set('options.effect', $values['nivo_slider_effect'])
->set('options.slices', $values['nivo_slider_slices'])
->set('options.box_columns', $values['nivo_slider_box_columns'])
->set('options.box_rows', $values['nivo_slider_box_rows'])
->set('options.animation_speed', $values['nivo_slider_animation_speed'])
->set('options.pause_on_hover', $values['nivo_slider_pause_on_hover'])
->set('options.directional_navigation', $values['nivo_slider_directional_navigation'])
->set('options.next_text', $values['nivo_slider_next_text'])
->set('options.previous_text', $values['nivo_slider_previous_text'])
->set('options.control_navigation', $values['nivo_slider_control_navigation'])
->set('options.control_nav_thumbs', $values['nivo_slider_control_nav_thumbs'])
->set('options.manual_advance', $values['nivo_slider_manual_advance'])
->set('options.pause_time', $values['nivo_slider_pause_time'])
->save();
parent::submitForm($form, $form_state);
}