You are here

public function PathologicSettingsForm::submitForm in Pathologic 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/PathologicSettingsForm.php, line 43

Class

PathologicSettingsForm

Namespace

Drupal\pathologic

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $this
    ->config('pathologic.settings')
    ->set('protocol_style', $form_state
    ->getValue('protocol_style'))
    ->set('local_paths', $form_state
    ->getValue('local_paths'))
    ->save();
  parent::submitForm($form, $form_state);
}