- Issue created by @ReyRPB
- π¨πΊCuba jleon1110
The problem is that in the hook used, only one file, config1.yml, is being imported, and the configuration directory is not being scanned recursively.
<?php function my_module_update_11101() { \Drupal::service('devutils.update_import') ->import('my_module', [ 'config1', 'language.es.config1', ]); } ?>
With this configuration, it should be possible to import exclusively both files. If there are more directories or folders, I recommend using web/core/lib/Drupal/Core/Config/ConfigInstaller.php as a base to import the configurations.
- πΊπΎUruguay ruby232 Montevideo
I think it's better to automatically add the language collection and only import it if the corresponding configuration files exist.