You are here

public function ConnectionConfigForm::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

src/Form/ConnectionConfigForm.php, line 84

Class

ConnectionConfigForm
Provides a form for changing connection related settings.

Namespace

Drupal\apigee_edge\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $this
    ->config('apigee_edge.client')
    ->set('http_client_connect_timeout', $form_state
    ->getValue('connect_timeout'))
    ->set('http_client_timeout', $form_state
    ->getValue('request_timeout'))
    ->set('http_client_proxy', trim($form_state
    ->getValue('http_proxy')))
    ->save();
  parent::submitForm($form, $form_state);
}