config('{{ module }}.settings'); foreach (Element::children($form) as $variable) { $config->set($variable, $form_state->getValue($form[$variable]['#parents'])); } $config->save(); if (method_exists($this, '_submitForm')) { $this->_submitForm($form, $form_state); } parent::submitForm($form, $form_state); } /** * {@inheritdoc} */ protected function getEditableConfigNames() { return ['{{ module }}.settings']; } {% endif %} } ?>