Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate fix #43

Merged
merged 2 commits into from
Jan 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ id: islandora_defaults_tags
class: null
field_plugin_method: null
cck_plugin_method: null
migration_tags: islandora_defaults_tags
migration_tags:
- islandora_defaults_tags
migration_group: islandora
label: 'Tags migration for islandora_defaults feature'
source:
Expand Down
14 changes: 14 additions & 0 deletions islandora_defaults.install
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,17 @@ function islandora_defaults_update_8001() {
}
}
}

/**
* Changes migration_tags to an array.
*/
function islandora_defaults_update_8002() {
$config_factory = \Drupal::configFactory();
$config = $config_factory->getEditable('migrate_plus.migration.islandora_defaults_tags');
if ($config) {
if (!is_array($config->get('migration_tags'))) {
$config->set('migration_tags', [$config->get('migration_tags')]);
$config->save(TRUE);
}
}
}