You are here

function minifyjs_system_performance_settings_submit in Minify JS 8

Same name and namespace in other branches
  1. 8.2 minifyjs.module \minifyjs_system_performance_settings_submit()

Helper function to handle submit hook in form alter.

Parameters

array $form:

FormStateInterface $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

Code

function minifyjs_system_performance_settings_submit(&$form, $form_state) {
  \Drupal::service('config.factory')
    ->getEditable('minifyjs.config')
    ->set('use_minified', $form_state
    ->getValue('use_minified_javascript'))
    ->save();
}