Same name in this branch
  1. 8.x-4.x advagg_old_ie_compatibility/src/Form/SettingsForm.php \Drupal\advagg_old_ie_compatibility\Form\SettingsForm::submitForm()
  2. 8.x-4.x advagg_bundler/src/Form/SettingsForm.php \Drupal\advagg_bundler\Form\SettingsForm::submitForm()
  3. 8.x-4.x advagg_css_minify/src/Form/SettingsForm.php \Drupal\advagg_css_minify\Form\SettingsForm::submitForm()
  4. 8.x-4.x advagg_js_minify/src/Form/SettingsForm.php \Drupal\advagg_js_minify\Form\SettingsForm::submitForm()
  5. 8.x-4.x src/Form/SettingsForm.php \Drupal\advagg\Form\SettingsForm::submitForm()
  6. 8.x-4.x advagg_cdn/src/Form/SettingsForm.php \Drupal\advagg_cdn\Form\SettingsForm::submitForm()
  7. 8.x-4.x advagg_ext_minify/src/Form/SettingsForm.php \Drupal\advagg_ext_minify\Form\SettingsForm::submitForm()
Same name and namespace in other branches
  1. 5.0.x advagg_old_ie_compatibility/src/Form/SettingsForm.php \Drupal\advagg_old_ie_compatibility\Form\SettingsForm::submitForm() 1 commentaire
  2. 5.0.x advagg_bundler/src/Form/SettingsForm.php \Drupal\advagg_bundler\Form\SettingsForm::submitForm() 1 commentaire
  3. 5.0.x advagg_css_minify/src/Form/SettingsForm.php \Drupal\advagg_css_minify\Form\SettingsForm::submitForm() 1 commentaire
  4. 5.0.x advagg_js_minify/src/Form/SettingsForm.php \Drupal\advagg_js_minify\Form\SettingsForm::submitForm() 1 commentaire
  5. 5.0.x src/Form/SettingsForm.php \Drupal\advagg\Form\SettingsForm::submitForm() 1 commentaire
  6. 5.0.x advagg_cdn/src/Form/SettingsForm.php \Drupal\advagg_cdn\Form\SettingsForm::submitForm() 1 commentaire
  7. 5.0.x advagg_ext_minify/src/Form/SettingsForm.php \Drupal\advagg_ext_minify\Form\SettingsForm::submitForm() 1 commentaire
  8. 5.0.x advagg_mod/src/Form/SettingsForm.php \Drupal\advagg_mod\Form\SettingsForm::submitForm() 1 commentaire
  9. 6.0.x advagg_bundler/src/Form/SettingsForm.php \Drupal\advagg_bundler\Form\SettingsForm::submitForm() 1 commentaire
  10. 6.0.x advagg_css_minify/src/Form/SettingsForm.php \Drupal\advagg_css_minify\Form\SettingsForm::submitForm() 1 commentaire
  11. 6.0.x advagg_js_minify/src/Form/SettingsForm.php \Drupal\advagg_js_minify\Form\SettingsForm::submitForm() 1 commentaire
  12. 6.0.x src/Form/SettingsForm.php \Drupal\advagg\Form\SettingsForm::submitForm() 1 commentaire
  13. 6.0.x advagg_ext_minify/src/Form/SettingsForm.php \Drupal\advagg_ext_minify\Form\SettingsForm::submitForm() 1 commentaire
  14. 6.0.x advagg_mod/src/Form/SettingsForm.php \Drupal\advagg_mod\Form\SettingsForm::submitForm() 1 commentaire
  15. 8.x-2.x advagg_bundler/src/Form/SettingsForm.php \Drupal\advagg_bundler\Form\SettingsForm::submitForm() 1 commentaire
  16. 8.x-2.x advagg_css_minify/src/Form/SettingsForm.php \Drupal\advagg_css_minify\Form\SettingsForm::submitForm() 1 commentaire
  17. 8.x-2.x advagg_js_minify/src/Form/SettingsForm.php \Drupal\advagg_js_minify\Form\SettingsForm::submitForm() 1 commentaire
  18. 8.x-2.x src/Form/SettingsForm.php \Drupal\advagg\Form\SettingsForm::submitForm() 1 commentaire
  19. 8.x-2.x advagg_cdn/src/Form/SettingsForm.php \Drupal\advagg_cdn\Form\SettingsForm::submitForm() 1 commentaire
  20. 8.x-2.x advagg_ext_minify/src/Form/SettingsForm.php \Drupal\advagg_ext_minify\Form\SettingsForm::submitForm() 1 commentaire
  21. 8.x-2.x advagg_mod/src/Form/SettingsForm.php \Drupal\advagg_mod\Form\SettingsForm::submitForm() 1 commentaire
  22. 8.x-3.x advagg_old_ie_compatibility/src/Form/SettingsForm.php \Drupal\advagg_old_ie_compatibility\Form\SettingsForm::submitForm() 1 commentaire
  23. 8.x-3.x advagg_bundler/src/Form/SettingsForm.php \Drupal\advagg_bundler\Form\SettingsForm::submitForm() 1 commentaire
  24. 8.x-3.x advagg_css_minify/src/Form/SettingsForm.php \Drupal\advagg_css_minify\Form\SettingsForm::submitForm() 1 commentaire
  25. 8.x-3.x advagg_js_minify/src/Form/SettingsForm.php \Drupal\advagg_js_minify\Form\SettingsForm::submitForm() 1 commentaire
  26. 8.x-3.x src/Form/SettingsForm.php \Drupal\advagg\Form\SettingsForm::submitForm() 1 commentaire
  27. 8.x-3.x advagg_cdn/src/Form/SettingsForm.php \Drupal\advagg_cdn\Form\SettingsForm::submitForm() 1 commentaire
  28. 8.x-3.x advagg_ext_minify/src/Form/SettingsForm.php \Drupal\advagg_ext_minify\Form\SettingsForm::submitForm() 1 commentaire
  29. 8.x-3.x advagg_mod/src/Form/SettingsForm.php \Drupal\advagg_mod\Form\SettingsForm::submitForm() 1 commentaire

Fichier

advagg_mod/src/Form/SettingsForm.php, line 248

Classe

SettingsForm
Configure advagg_mod settings for this site.

Namespace

Drupal\advagg_mod\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
    
    /** @var \Drupal\Core\Config\Config $config */
    $config = $this->config('advagg_mod.settings');
    $config->set('css_adjust_sort_browsers', $form_state->getValue('css_adjust_sort_browsers'))
        ->set('css_adjust_sort_external', $form_state->getValue('css_adjust_sort_external'))
        ->set('css_defer', $form_state->getValue('css_defer'))
        ->set('css_defer_admin', $form_state->getValue('css_defer_admin'))
        ->set('css_defer_external', $form_state->getValue('css_defer_external'))
        ->set('css_defer_js_code', $form_state->getValue('css_defer_js_code'))
        ->set('css_preprocess', $form_state->getValue('css_preprocess'))
        ->set('css_translate', $form_state->getValue('css_translate'))
        ->set('js_adjust_sort_browsers', $form_state->getValue('js_adjust_sort_browsers'))
        ->set('js_adjust_sort_external', $form_state->getValue('js_adjust_sort_external'))
        ->set('js_async', $form_state->getValue('js_async'))
        ->set('js_async_in_header', $form_state->getValue('js_async_in_header'))
        ->set('js_defer', $form_state->getValue('js_defer'))
        ->set('js_footer', $form_state->getValue('js_footer'))
        ->set('js_preprocess', $form_state->getValue('js_preprocess'))
        ->set('js_remove_console_log', $form_state->getValue('js_remove_console_log'))
        ->set('prefetch', $form_state->getValue('prefetch'))
        ->set('unified_multisite_dir', $form_state->getValue('unified_multisite_dir'))
        ->save();
    // Clear relevant caches.
    Cache::invalidateTags([
        'library_info',
    ]);
    $this->cache
        ->invalidateAll();
    parent::submitForm($form, $form_state);
}