Deployment failure in Drupal
In case, a config import error is coming because the new module is not installed then we can do the following
function somemodule_update_10001() {
if (!\Drupal::service('module_handler')->moduleExists('new_module')) {
\Drupal::service('module_installer')->install(['new_module']);
}
}
Comments
Post a Comment