You are here

public function TaxonomyManagerAdmin::submitForm in Taxonomy Manager 8

Same name and namespace in other branches
  1. 2.0.x src/Form/TaxonomyManagerAdmin.php \Drupal\taxonomy_manager\Form\TaxonomyManagerAdmin::submitForm()

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/TaxonomyManagerAdmin.php, line 66

Class

TaxonomyManagerAdmin
Managing the advanced options for the taxonomy_manager module.

Namespace

Drupal\taxonomy_manager\Form

Code

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