Skip to content
Snippets Groups Projects
Commit 0160cb67 authored by David Snopek's avatar David Snopek Committed by Andrii Podanenko
Browse files

Issue #3325698 by dsnopek, geek-merlin: Using 'migrate' without 'migrate_plus'...

Issue #3325698 by dsnopek, geek-merlin: Using 'migrate' without 'migrate_plus' leads to fatal PHP error
parent 18f00235
Branches
Tags
1 merge request!99Closes #3359875
...@@ -151,7 +151,7 @@ class MigrationHelper { ...@@ -151,7 +151,7 @@ class MigrationHelper {
*/ */
protected function getMigrationWithSharedConfiguration(array &$migration) { protected function getMigrationWithSharedConfiguration(array &$migration) {
// Integrate shared group configuration into the migration. // Integrate shared group configuration into the migration.
if (!empty($migration['migration_group'])) { if (!empty($migration['migration_group']) && class_exists('\Drupal\migrate_plus\Entity\MigrationGroup')) {
$group = \Drupal\migrate_plus\Entity\MigrationGroup::load($migration['migration_group']); $group = \Drupal\migrate_plus\Entity\MigrationGroup::load($migration['migration_group']);
$shared_configuration = !empty($group) ? $group->get('shared_configuration') : []; $shared_configuration = !empty($group) ? $group->get('shared_configuration') : [];
if (!empty($shared_configuration)) { if (!empty($shared_configuration)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment