You are here

public function ConfigForm::submitForm in PDF 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/ConfigForm.php, line 51

Class

ConfigForm
Class ConfigForm.

Namespace

Drupal\pdf\Form

Code

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