public function SettingsForm::submitForm in CKEditorHeight 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/ SettingsForm.php, line 73
Class
- SettingsForm
- Class SettingsForm.
Namespace
Drupal\ckeditorheight\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
parent::submitForm($form, $form_state);
$this
->config('ckeditorheight.settings')
->set('offset', $form_state
->getValue('offset'))
->set('line_height', $form_state
->getValue('line_height'))
->set('unit', $form_state
->getValue('unit'))
->set('disable_autogrow', $form_state
->getValue('disable_autogrow'))
->save();
}