public function HttpClientManagerConfigForm::submitForm in HTTP Client Manager 8
Same name and namespace in other branches
- 8.2 src/Form/HttpClientManagerConfigForm.php \Drupal\http_client_manager\Form\HttpClientManagerConfigForm::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/ HttpClientManagerConfigForm.php, line 55
Class
- HttpClientManagerConfigForm
- Class HttpClientManagerConfigForm.
Namespace
Drupal\http_client_manager\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
parent::submitForm($form, $form_state);
$this
->config('http_client_manager.settings')
->set('enable_overriding_service_definitions', $form_state
->getValue('enable_overriding_service_definitions'))
->save();
}