public function PaceAdminSettingsForm::submitForm in PACE - Page load progress bar 8
Same name and namespace in other branches
- 2.0.x src/Form/PaceAdminSettingsForm.php \Drupal\pace\Form\PaceAdminSettingsForm::submitForm()
Form submission handler.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Overrides ConfigFormBase::submitForm
File
- src/
Form/ PaceAdminSettingsForm.php, line 105 - Contains \Drupal\pace\Form\PaceAdminSettingsForm.
Class
- PaceAdminSettingsForm
- Implements settings form.
Namespace
Drupal\pace\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
parent::submitForm($form, $form_state);
$this
->config('pace.settings')
->set('pace_theme', $form_state
->getValue('pace_theme'))
->set('pace_color', $form_state
->getValue('pace_color'))
->set('pace_load_on_admin_enabled', $form_state
->getValue('pace_load_on_admin_enabled'))
->save();
}