File
-
advagg_bundler/src/Form/SettingsForm.php, line 145
Class
- SettingsForm
- Configure advagg bundler settings for this site.
Namespace
Drupal\advagg_bundler\Form
Code
public function submitForm(array &$form, FormStateInterface $form_state) {
$config = $this->config('advagg_bundler.settings')
->set('active', $form_state->getValue('active'))
->set('css.max', $form_state->getValue('max_css'))
->set('css.logic', $form_state->getValue('css_logic'))
->set('js.max', $form_state->getValue('max_js'))
->set('js.logic', $form_state->getValue('js_logic'));
$config->save();
Cache::invalidateTags([
'library_info',
]);
$this->cache
->invalidateAll();
parent::submitForm($form, $form_state);
}