You are here

public function JanrainScreensSettingsForm::submitForm in Janrain Registration 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/JanrainScreensSettingsForm.php, line 46

Class

JanrainScreensSettingsForm
Janrain Screens settings form.

Namespace

Drupal\janrain_capture\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  parent::submitForm($form, $form_state);
  $this->configFactory
    ->getEditable('janrain_capture.settings')
    ->set('screens.folder', $form_state
    ->getValue('screens_folder'))
    ->save();
}