public function ConfigForm::submitForm in XHProf 8
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/ ConfigForm.php, line 186
Class
- ConfigForm
- Provides a form to configure profiling settings.
Namespace
Drupal\xhprof\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->config('xhprof.config')
->set('enabled', $form_state
->getValue('enabled'))
->set('extension', $form_state
->getValue('extension'))
->set('exclude', $form_state
->getValue('exclude'))
->set('interval', $form_state
->getValue('interval'))
->set('storage', $form_state
->getValue('storage'))
->set('flags', $form_state
->getValue('flags'))
->set('exclude_indirect_functions', $form_state
->getValue('exclude_indirect_functions'))
->set('show_summary_toolbar', $form_state
->getValue('show_summary_toolbar'))
->save();
parent::submitForm($form, $form_state);
}