public function NeutralPathsSettingsForm::submitForm in Neutral paths 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/ NeutralPathsSettingsForm.php, line 81
Class
- NeutralPathsSettingsForm
- Configure file system settings for this site.
Namespace
Drupal\neutral_paths\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$config = $this
->config('neutral_paths.settings');
$values = $form_state
->getValues();
$config
->set('neutral_paths_fix_new', array_keys(array_filter($values['neutral_paths_fix_new'])));
$config
->save();
parent::submitForm($form, $form_state);
}