public LoggingForm::submitForm(array &$form, FormStateInterface $form_state)
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
- core/modules/system/src/Form/LoggingForm.php, line 51
Class
- LoggingForm
- Configure logging settings for this site.
Namespace
Drupal\system\Form
Code
1 2 3 4 5 6 7 | public function submitForm( array & $form , FormStateInterface $form_state ) { $this ->config( 'system.logging' ) ->set( 'error_level' , $form_state ->getValue( 'error_level' )) ->save(); parent::submitForm( $form , $form_state ); } |
Please login to continue.