Same name in this branch
- 8.x-2.x advagg_bundler/src/Form/SettingsForm.php \Drupal\advagg_bundler\Form\SettingsForm::submitForm()
- 8.x-2.x advagg_css_minify/src/Form/SettingsForm.php \Drupal\advagg_css_minify\Form\SettingsForm::submitForm()
- 8.x-2.x advagg_js_minify/src/Form/SettingsForm.php \Drupal\advagg_js_minify\Form\SettingsForm::submitForm()
- 8.x-2.x advagg_cdn/src/Form/SettingsForm.php \Drupal\advagg_cdn\Form\SettingsForm::submitForm()
- 8.x-2.x advagg_ext_minify/src/Form/SettingsForm.php \Drupal\advagg_ext_minify\Form\SettingsForm::submitForm()
- 8.x-2.x advagg_mod/src/Form/SettingsForm.php \Drupal\advagg_mod\Form\SettingsForm::submitForm()
Same name in other branches
- 5.0.x advagg_old_ie_compatibility/src/Form/SettingsForm.php \Drupal\advagg_old_ie_compatibility\Form\SettingsForm::submitForm()
- 5.0.x advagg_bundler/src/Form/SettingsForm.php \Drupal\advagg_bundler\Form\SettingsForm::submitForm()
- 5.0.x advagg_css_minify/src/Form/SettingsForm.php \Drupal\advagg_css_minify\Form\SettingsForm::submitForm()
- 5.0.x advagg_js_minify/src/Form/SettingsForm.php \Drupal\advagg_js_minify\Form\SettingsForm::submitForm()
- 5.0.x src/Form/SettingsForm.php \Drupal\advagg\Form\SettingsForm::submitForm()
- 5.0.x advagg_cdn/src/Form/SettingsForm.php \Drupal\advagg_cdn\Form\SettingsForm::submitForm()
- 5.0.x advagg_ext_minify/src/Form/SettingsForm.php \Drupal\advagg_ext_minify\Form\SettingsForm::submitForm()
- 5.0.x advagg_mod/src/Form/SettingsForm.php \Drupal\advagg_mod\Form\SettingsForm::submitForm()
- 6.0.x advagg_bundler/src/Form/SettingsForm.php \Drupal\advagg_bundler\Form\SettingsForm::submitForm()
- 6.0.x advagg_css_minify/src/Form/SettingsForm.php \Drupal\advagg_css_minify\Form\SettingsForm::submitForm()
- 6.0.x advagg_js_minify/src/Form/SettingsForm.php \Drupal\advagg_js_minify\Form\SettingsForm::submitForm()
- 6.0.x src/Form/SettingsForm.php \Drupal\advagg\Form\SettingsForm::submitForm()
- 6.0.x advagg_ext_minify/src/Form/SettingsForm.php \Drupal\advagg_ext_minify\Form\SettingsForm::submitForm()
- 6.0.x advagg_mod/src/Form/SettingsForm.php \Drupal\advagg_mod\Form\SettingsForm::submitForm()
- 8.x-3.x advagg_old_ie_compatibility/src/Form/SettingsForm.php \Drupal\advagg_old_ie_compatibility\Form\SettingsForm::submitForm()
- 8.x-3.x advagg_bundler/src/Form/SettingsForm.php \Drupal\advagg_bundler\Form\SettingsForm::submitForm()
- 8.x-3.x advagg_css_minify/src/Form/SettingsForm.php \Drupal\advagg_css_minify\Form\SettingsForm::submitForm()
- 8.x-3.x advagg_js_minify/src/Form/SettingsForm.php \Drupal\advagg_js_minify\Form\SettingsForm::submitForm()
- 8.x-3.x src/Form/SettingsForm.php \Drupal\advagg\Form\SettingsForm::submitForm()
- 8.x-3.x advagg_cdn/src/Form/SettingsForm.php \Drupal\advagg_cdn\Form\SettingsForm::submitForm()
- 8.x-3.x advagg_ext_minify/src/Form/SettingsForm.php \Drupal\advagg_ext_minify\Form\SettingsForm::submitForm()
- 8.x-3.x advagg_mod/src/Form/SettingsForm.php \Drupal\advagg_mod\Form\SettingsForm::submitForm()
- 8.x-4.x advagg_old_ie_compatibility/src/Form/SettingsForm.php \Drupal\advagg_old_ie_compatibility\Form\SettingsForm::submitForm()
- 8.x-4.x advagg_bundler/src/Form/SettingsForm.php \Drupal\advagg_bundler\Form\SettingsForm::submitForm()
- 8.x-4.x advagg_css_minify/src/Form/SettingsForm.php \Drupal\advagg_css_minify\Form\SettingsForm::submitForm()
- 8.x-4.x advagg_js_minify/src/Form/SettingsForm.php \Drupal\advagg_js_minify\Form\SettingsForm::submitForm()
- 8.x-4.x src/Form/SettingsForm.php \Drupal\advagg\Form\SettingsForm::submitForm()
- 8.x-4.x advagg_cdn/src/Form/SettingsForm.php \Drupal\advagg_cdn\Form\SettingsForm::submitForm()
- 8.x-4.x advagg_ext_minify/src/Form/SettingsForm.php \Drupal\advagg_ext_minify\Form\SettingsForm::submitForm()
- 8.x-4.x advagg_mod/src/Form/SettingsForm.php \Drupal\advagg_mod\Form\SettingsForm::submitForm()
Fichier
-
src/
Form/ SettingsForm.php, line 375
Classe
- SettingsForm
- Configure advagg settings for this site.
Namespace
Drupal\advagg\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this->config('advagg.settings')
->set('css.fix_type', $form_state->getValue('css_fix_type'))
->set('css.ie.limit_selectors', $form_state->getValue('css_ie_limit_selectors'))
->set('css.ie.selector_limit', $form_state->getValue('css_ie_selector_limit'))
->set('css.combine_media', $form_state->getValue('css_combine_media'))
->set('path.convert.force_https', $form_state->getValue('path_convert_force_https'))
->set('path.convert.absolute_to_protocol_relative', $form_state->getValue('path_convert_absolute_to_protocol_relative'))
->set('enabled', $form_state->getValue('enabled'))
->set('core_groups', $form_state->getValue('core_groups'))
->set('dns_prefetch', $form_state->getValue('dns_prefetch'))
->set('cache_level', $form_state->getValue('cache_level'))
->set('cron_frequency', $form_state->getValue('cron_frequency'))
->set('include_base_url', $form_state->getValue('include_base_url'))
->set('js_fix_type', $form_state->getValue('js_fix_type'))
->set('js_preserve_external', $form_state->getValue('js_preserve_external'))
->save();
$this->config('system.performance')
->set('stale_file_threshold', $form_state->getValue('stale_file_threshold'))
->set('css.gzip', $form_state->getValue('css_gzip'))
->set('js.gzip', $form_state->getValue('js_gzip'))
->save();
// Clear relevant caches.
$this->cssCollectionOptimizer
->deleteAll();
$this->jsCollectionOptimizer
->deleteAll();
Cache::invalidateTags([
'library_info',
'advagg_css',
'advagg_js',
]);
parent::submitForm($form, $form_state);
}