Commit 2b3c0dfa authored by tlyngej's avatar tlyngej

Set the module to only take updated config entities into consideration

parent 4f342ddf
...@@ -28,10 +28,12 @@ class ConfigImporterIgnore { ...@@ -28,10 +28,12 @@ class ConfigImporterIgnore {
$config_ignore_settings = \Drupal::config('config_ignore.settings')->get('ignored_config_entities'); $config_ignore_settings = \Drupal::config('config_ignore.settings')->get('ignored_config_entities');
foreach (['delete', 'create', 'rename', 'update'] as $op) { foreach (['delete', 'create', 'rename', 'update'] as $op) {
// For now, we only support updates. // For now, we only support updates.
foreach ($config_importer->getUnprocessedConfiguration($op) as $config) { if ($op == 'update') {
if (in_array($config, $config_ignore_settings)) { foreach ($config_importer->getUnprocessedConfiguration($op) as $config) {
$config_to_ignore[$op][$config] = \Drupal::config($config) if (in_array($config, $config_ignore_settings)) {
->getRawData(); $config_to_ignore[$op][$config] = \Drupal::config($config)
->getRawData();
}
} }
} }
// We do not support core.extension. // We do not support 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