diff --git a/docroot/profiles/custom/sul_profile/config/sync/config_ignore.settings.yml b/docroot/profiles/custom/sul_profile/config/sync/config_ignore.settings.yml index d178a1f31..fd4033d9b 100644 --- a/docroot/profiles/custom/sul_profile/config/sync/config_ignore.settings.yml +++ b/docroot/profiles/custom/sul_profile/config/sync/config_ignore.settings.yml @@ -2,11 +2,11 @@ _core: default_config_hash: v7E8C8wJWeAW2BGohMNY1tZSBc4bexM6O62tGxecTfE mode: simple ignored_config_entities: + - 'build_hooks.frontend_environment.*' - 'google_tag.container.*' - 'next.next_entity_type_config.*' - 'next.next_site.*' - 'system.action.user_add_role_action.custm_*' - 'system.action.user_remove_role_action.custm_*' - 'user.role.custm_*' - - 'build_hooks.frontend_environment.*' enable_export_filtering: false diff --git a/docroot/profiles/custom/sul_profile/config/sync/migrate_plus.migration.stanford_localist_importer.yml b/docroot/profiles/custom/sul_profile/config/sync/migrate_plus.migration.stanford_localist_importer.yml index 194412b33..35be51bcd 100644 --- a/docroot/profiles/custom/sul_profile/config/sync/migrate_plus.migration.stanford_localist_importer.yml +++ b/docroot/profiles/custom/sul_profile/config/sync/migrate_plus.migration.stanford_localist_importer.yml @@ -18,7 +18,7 @@ source: request_options: timeout: 60 urls: { } - data_parser_plugin: localist_json + data_parser_plugin: sul_localist_json item_selector: events orphan_action: forget fields: diff --git a/docroot/profiles/custom/sul_profile/modules/sul_helper/src/Plugin/migrate_plus/data_parser/SulLocalistJson.php b/docroot/profiles/custom/sul_profile/modules/sul_helper/src/Plugin/migrate_plus/data_parser/SulLocalistJson.php new file mode 100644 index 000000000..1239b71f1 --- /dev/null +++ b/docroot/profiles/custom/sul_profile/modules/sul_helper/src/Plugin/migrate_plus/data_parser/SulLocalistJson.php @@ -0,0 +1,31 @@ + $item) { + if (in_array($item['event']['id'], $event_ids)) { + unset($source_data[$key]); + continue; + } + $event_ids[] = $item['event']['id']; + } + return array_values($source_data); + } + +} \ No newline at end of file