You are here

public function AutocompleteSettingsForm::submitForm in Multi-path autocomplete 8

Implements \Drupal\Core\Form\FormInterface::submitForm().

Overrides ConfigFormBase::submitForm

File

lib/Drupal/mpac/AutocompleteSettingsForm.php, line 79
Contains \Drupal\mpac\AutocompleteSettingsForm.

Class

AutocompleteSettingsForm
Configure user settings for this site.

Namespace

Drupal\mpac

Code

public function submitForm(array &$form, array &$form_state) {
  parent::submitForm($form, $form_state);
  $this->configFactory
    ->get('mpac.autocomplete')
    ->set('items.max', $form_state['values']['mpac_max_items'])
    ->save();
}