Skip to content
Snippets Groups Projects
Commit 4cc6afff authored by Angie Byron's avatar Angie Byron
Browse files

Issue #1850352 by tim.plunkett, xjm: Fixed config_import_invoke_owner() should...

Issue #1850352 by tim.plunkett, xjm: Fixed config_import_invoke_owner() should check whether a module exists before invoking its hooks.
parent cf297948
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -256,7 +256,7 @@ function config_import_invoke_owner(array $config_changes, StorageInterface $sou
// Check whether the module implements hook_config_import() and ask it to
// handle the configuration change.
$handled_by_module = FALSE;
if (module_hook($module, 'config_import_' . $op)) {
if (module_exists($module) && module_hook($module, 'config_import_' . $op)) {
$old_config = new Config($name, $target_storage);
$old_config->load();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment