function minifyjs_system_performance_settings_submit in Minify JS 8.2
Same name and namespace in other branches
- 8 minifyjs.module \minifyjs_system_performance_settings_submit()
Helper function to handle submit hook in form alter.
Parameters
array $form: The form array.
\Drupal\Core\Form\FormStateInterface $form_state: The form state.
1 string reference to 'minifyjs_system_performance_settings_submit'
- minifyjs_form_system_performance_settings_alter in ./
minifyjs.module - Implements hook_FORM_ID_alter().
File
- ./
minifyjs.module, line 56 - Hooks and functions for the minifyjs module.
Code
function minifyjs_system_performance_settings_submit(array &$form, FormStateInterface $form_state) {
\Drupal::service('config.factory')
->getEditable('minifyjs.config')
->set('use_minified', $form_state
->getValue('use_minified_javascript'))
->save();
}