diff --git a/src/Plugin/migrate/source/PathautoPattern.php b/src/Plugin/migrate/source/PathautoPattern.php index 7efe3f4..56d7b4f 100644 --- a/src/Plugin/migrate/source/PathautoPattern.php +++ b/src/Plugin/migrate/source/PathautoPattern.php @@ -117,7 +117,7 @@ class PathautoPattern extends DrupalSqlBase { $row->setSourceProperty('pattern', unserialize($row->getSourceProperty('value'))); $selection_criteria = [ - 'id' => 'node' ? 'node_type' : 'entity_bundle:' . $entity_type, + 'id' => ($entity_type == 'node') ? 'node_type' : 'entity_bundle:' . $entity_type, 'bundles' => [$bundle => $bundle], 'negate' => FALSE, 'context_mapping' => [$entity_type => $entity_type],