public function JstimerAdminSettings::_submitForm in Javascript Timer 8
Save admin settings, write jstimer.js file, and clear js cache (for aggregation).
1 call to JstimerAdminSettings::_submitForm()
- JstimerAdminSettings::submitForm in src/
Form/ JstimerAdminSettings.php - Form submission handler.
File
- src/
Form/ JstimerAdminSettings.php, line 67 - Contains \Drupal\jstimer\Form\JstimerAdminSettings.
Class
Namespace
Drupal\jstimer\FormCode
public function _submitForm(array &$form, FormStateInterface $form_state) {
// build timer.js file with new settings.
jstimer_build_js_cache();
drupal_clear_js_cache();
}