You are here

public function VisualizationSettingsForm::submitForm in Visualization API 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/VisualizationSettingsForm.php, line 57

Class

VisualizationSettingsForm

Namespace

Drupal\visualization\Form

Code

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