You are here

public function LingotekImportSettingsForm::submitForm in Lingotek Translation 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/LingotekImportSettingsForm.php, line 76

Class

LingotekImportSettingsForm

Namespace

Drupal\lingotek\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $lingotek_config = \Drupal::service('lingotek.configuration');
  $form_values = $form_state
    ->getValues();
  $this
    ->saveImportSettings($form_values);
  drupal_set_message($this
    ->t('Your preferences have been saved'));
}