You are here

public function LdapDebugSettings::submitForm in Lightweight Directory Access Protocol (LDAP) 8.4

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

ldap_servers/src/Form/LdapDebugSettings.php, line 47

Class

LdapDebugSettings
Configuration form for LDAP debug settings.

Namespace

Drupal\ldap_servers\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) : void {
  $this
    ->config('ldap_servers.settings')
    ->set('watchdog_detail', $form_state
    ->getValue('watchdog_detail'))
    ->save();
}