public function AutoHeightSettingsForm::submitForm in jQuery Auto Height 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/ AutoHeightSettingsForm.php, line 62
Class
- AutoHeightSettingsForm
- Configure auto_height settings.
Namespace
Drupal\auto_height\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$config = $this
->config('auto_height.settings');
$config
->set('class_selectors', $form_state
->getValue('auto_height_selectors'))
->save();
parent::submitForm($form, $form_state);
}