You are here

public function ConfigForm::submitForm in Apigee Edge 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

modules/apigee_edge_debug/src/Form/ConfigForm.php, line 151

Class

ConfigForm
Provides a form for changing configuration of the debug module.

Namespace

Drupal\apigee_edge_debug\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $this
    ->config('apigee_edge_debug.settings')
    ->set('formatter', $form_state
    ->getValue('formatter'))
    ->set('log_message_format', $form_state
    ->getValue([
    'log_message_format',
    'format',
  ]))
    ->set('mask_organization', $form_state
    ->getValue('mask_organization'))
    ->set('remove_credentials', $form_state
    ->getValue('remove_credentials'))
    ->save();
  parent::submitForm($form, $form_state);
}