public function CkeditorConfigForm::submitForm in CKEditor custom config 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/ CkeditorConfigForm.php, line 70
Class
- CkeditorConfigForm
- Class CkeditorConfigController.
Namespace
Drupal\ckeditor_config\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
parent::submitForm($form, $form_state);
$this
->config('ckeditor_config.config_form')
->set('config', $form_state
->getValue('config'))
->save();
}