public function submitForm(array &$form, FormStateInterface $form_state)
 {
     $config = $this->config->get('git_config.config');
     $config->set('git_url', $form_state->getValue('git_url'));
     $config->set('private_key', $form_state->getValue('private_key'));
     $config->save();
 }
 public function submitForm(array &$form, FormStateInterface $form_state)
 {
     $config = $this->config->get('config_files.config');
     $config->set('directory', $form_state->getValue('directory'));
     $config->save();
     $active_dir = $config->get('directory');
     foreach ($this->configManager->getConfigFactory()->listAll() as $name) {
         $yml = Yaml::dump($this->configManager->getConfigFactory()->get($name)->getRawData());
         $file_name = $name . '.yml';
         file_put_contents($active_dir . '/' . $file_name, $yml, FILE_EXISTS_REPLACE);
     }
 }