You are here

public function GetId3ConfigForm::submitForm in getID3() 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/GetId3ConfigForm.php, line 86
Contains \Drupal\getid3\Form\GetId3ConfigForm.

Class

GetId3ConfigForm

Namespace

Drupal\getid3\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  parent::submitForm($form, $form_state);

  // Save the new value.
  $this
    ->config('getid3.settings')
    ->set('path', $form_state
    ->getValue('getid3_path'))
    ->set('getid3_show_warnings', $form_state
    ->getValue('getid3_show_warnings'))
    ->save();
}