You are here

public function SettingsForm::submitForm in Views TimelineJS integration 8.3

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/SettingsForm.php, line 50

Class

SettingsForm
Configure site-wide settings for Views TimelineJS.

Namespace

Drupal\views_timelinejs\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $values = $form_state
    ->getValues();
  $this
    ->config('views_timelinejs.settings')
    ->set('library_location', $values['library_location'])
    ->save();
  parent::submitForm($form, $form_state);
}