/**
  * {@inheritdoc}
  */
 public function submitForm(array &$form, FormStateInterface $form_state)
 {
     parent::submitForm($form, $form_state);
     $config = $this->config('idmygadget.settings');
     foreach ($this->gadgetTypes as $gadgetType) {
         $gadgetTypePlural = $gadgetType . 's';
         $settingName = 'idmygadget_hamburger_nav_left_on_' . $gadgetTypePlural;
         // e.g., 'idmygadget_hamburger_nav_left_on_phones'
         $config->set($settingName, $form_state->getValue($settingName));
         $settingName = 'idmygadget_hamburger_nav_right_on_' . $gadgetTypePlural;
         // e.g., 'idmygadget_hamburger_nav_right_on_phones'
         $config->set($settingName, $form_state->getValue($settingName));
     }
     $settingName = 'idmygadget_hamburger_menu_icon_left_size';
     $config->set($settingName, $form_state->getValue($settingName));
     $settingName = 'idmygadget_hamburger_menu_icon_right_size';
     $config->set($settingName, $form_state->getValue($settingName));
     $settingName = 'idmygadget_hamburger_menu_icon_left_color';
     $config->set($settingName, $form_state->getValue($settingName));
     $settingName = 'idmygadget_hamburger_menu_icon_right_color';
     $config->set($settingName, $form_state->getValue($settingName));
     $settingName = 'idmygadget_hamburger_menu_icon_left_line_cap';
     $config->set($settingName, $form_state->getValue($settingName));
     $settingName = 'idmygadget_hamburger_menu_icon_right_line_cap';
     $config->set($settingName, $form_state->getValue($settingName));
     $settingName = 'idmygadget_hamburger_menu_icon_left_line_size';
     $config->set($settingName, $form_state->getValue($settingName));
     $settingName = 'idmygadget_hamburger_menu_icon_right_line_size';
     $config->set($settingName, $form_state->getValue($settingName));
     $config->save();
 }
 /**
  * {@inheritdoc}
  */
 public function submitForm(array &$form, FormStateInterface $form_state)
 {
     parent::submitForm($form, $form_state);
     $config = $this->config('idmygadget.settings');
     $config->set('idmygadget_gadget_detector', $form_state->getValue('idmygadget_gadget_detector'));
     $config->save();
 }
 /**
  * {@inheritdoc}
  */
 public function submitForm(array &$form, FormStateInterface $form_state)
 {
     parent::submitForm($form, $form_state);
     $config = $this->config('idmygadget.settings');
     $config->set('idmygadget_gadget_detector', $form_state->getValue('idmygadget_gadget_detector'));
     $config->set('idmygadget_jqm_data_theme', $form_state->getValue('idmygadget_jqm_data_theme'));
     foreach ($this->gadgetTypes as $gadgetType) {
         $gadgetTypePlural = $gadgetType . 's';
         $settingName = 'idmygadget_phone_nav_on_' . $gadgetTypePlural;
         // e.g., 'idmygadget_phone_nav_on_phones'
         $config->set($settingName, $form_state->getValue($settingName));
         $settingName = 'idmygadget_logo_file_' . $gadgetType;
         // e.g., 'idmygadget_logo_file_phone'
         $config->set($settingName, $form_state->getValue($settingName));
         $settingName = 'idmygadget_show_site_name_' . $gadgetType;
         // e.g., 'idmygadget_show_site_name_phone'
         $config->set($settingName, $form_state->getValue($settingName));
         $settingName = 'idmygadget_site_name_element_' . $gadgetType;
         // e.g., 'idmygadget_site_name_element_phone'
         $config->set($settingName, $form_state->getValue($settingName));
         $settingName = 'idmygadget_site_title_' . $gadgetType;
         // e.g., 'idmygadget_show_site_name_phone'
         $config->set($settingName, $form_state->getValue($settingName));
         $settingName = 'idmygadget_site_title_element_' . $gadgetType;
         // e.g., 'idmygadget_site_name_element_phone'
         $config->set($settingName, $form_state->getValue($settingName));
         $settingName = 'idmygadget_site_slogan_' . $gadgetType;
         // e.g., 'idmygadget_show_site_slogan_phone'
         $config->set($settingName, $form_state->getValue($settingName));
         $settingName = 'idmygadget_site_slogan_element_' . $gadgetType;
         // e.g., 'idmygadget_site_slogan_element_phone'
         $config->set($settingName, $form_state->getValue($settingName));
     }
     $config->save();
 }
 /**
  * {@inheritdoc}
  */
 public function submitForm(array &$form, FormStateInterface $form_state)
 {
     parent::submitForm($form, $form_state);
     $config = $this->config('idmygadget.settings');
     $settingName = 'idmygadget_phone_nav_on_tablets';
     $config->set($settingName, $form_state->getValue($settingName));
     $settingName = 'idmygadget_logo_file_tablet';
     $config->set($settingName, $form_state->getValue($settingName));
     $settingName = 'idmygadget_show_site_name_tablet';
     $config->set($settingName, $form_state->getValue($settingName));
     $settingName = 'idmygadget_site_name_element_tablet';
     $config->set($settingName, $form_state->getValue($settingName));
     $settingName = 'idmygadget_site_title_tablet';
     $config->set($settingName, $form_state->getValue($settingName));
     $settingName = 'idmygadget_site_title_element_tablet';
     $config->set($settingName, $form_state->getValue($settingName));
     $settingName = 'idmygadget_site_slogan_tablet';
     $config->set($settingName, $form_state->getValue($settingName));
     $settingName = 'idmygadget_site_slogan_element_tablet';
     $config->set($settingName, $form_state->getValue($settingName));
     $config->save();
 }