Commit 2b3c0dfa authored by tlyngej's avatar tlyngej

Set the module to only take updated config entities into consideration

parent 4f342ddf
......@@ -28,12 +28,14 @@ class ConfigImporterIgnore {
$config_ignore_settings = \Drupal::config('config_ignore.settings')->get('ignored_config_entities');
foreach (['delete', 'create', 'rename', 'update'] as $op) {
// For now, we only support updates.
if ($op == 'update') {
foreach ($config_importer->getUnprocessedConfiguration($op) as $config) {
if (in_array($config, $config_ignore_settings)) {
$config_to_ignore[$op][$config] = \Drupal::config($config)
->getRawData();
}
}
}
// We do not support core.extension.
unset($config_to_ignore[$op]['core.extension']);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment