You are here

public function TagadelicSettingsForm::submitForm in Tagadelic 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/TagadelicSettingsForm.php, line 60
Contains \Drupal\tagadelic\Form\TagadelicSettingsForm.

Class

TagadelicSettingsForm
Vocabularies used in the tag cloud.

Namespace

Drupal\tagadelic\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $config = $this
    ->config('tagadelic.settings');
  $config
    ->set('tagadelic_vocabularies', $form_state
    ->getValue('tagadelic_vocabularies'));
  $config
    ->save();
  parent::submitForm($form, $form_state);
}