I see that in Drupal 8 they removed a method called;
EntityDefinitionUpdateManager::applyUpdates()
Every time I added a new field to my yml configs or add a new node.type.yml to my config folder in my module, I reinstall the module to see newly added fields.
Here in the drupal documentation in the hook_update_N()
example they read yml files one by one. It is very inefficient because I have like 100 yml files to update.
I found another packet that allows you to use applyUpdate()
method but it corrupts the other configs.
I also tried;
drush config:import --source=module/config/install
It also corrupts other configs.
I couldn’t find another way to write a hook for update node type in drupal. Is there a way for drupal to see my newly added config files and update entities? I couldn’t find a proper example or document for it.