public function Settings::submitForm in CKEditor Bootstrap Grid 2.0.x
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/ Settings.php, line 195
Class
- Settings
- Configuration for CKEditor BS Grid.
Namespace
Drupal\ckeditor_bs_grid\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
parent::submitForm($form, $form_state);
$values = $form_state
->cleanValues()
->getValues();
unset($values['actions']);
$this
->configFactory()
->getEditable(self::CONFIG_NAME)
->set('breakpoints', $values)
->save();
}