I'm working on a module that already comes with a config file in mymodule/config/install/mymodule.settings.yml, and I'm working on a new feature that requires its own set of configuration in mymodule/config/install/mymodule.newfeature.yml.
I assume I need to put the following code in an update hook.
function mymodule_update_8003() {
\Drupal::service('config.installer')->installDefaultConfig('module', 'mymodule');
}
But if I do this, will sites that have overridden my existing configuration (from mymodule.settings.yml) get hosed, or is there another way to tell Drupal about my new configuration?