Commit 49681546 authored by Jon Minder's avatar Jon Minder
Browse files

Issue #3307500: Support paragraphs

parent b83d135f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -173,7 +173,7 @@ class MigrateOrphansCommands extends MigrateToolsCommands {
          $deleted = $disabled = FALSE;
          if (!$dry_run && $options['delete']) {
            if (!empty($destination->getPluginDefinition()['id'])) {
              $provider = str_replace('entity:', '', $destination->getPluginDefinition()['id']);
              $provider = ltrim(stristr($destination->getPluginDefinition()['id'], ':'), ':');
              $controller = $this->entityTypeManager->getStorage($provider);
              if (count($orphans) > 1000) {
                for ($i = 0; $i <= count($orphans); $i += 1000) {
@@ -194,7 +194,7 @@ class MigrateOrphansCommands extends MigrateToolsCommands {
          else {
            if (!$dry_run && !$options['delete']) {
              if (!empty($destination->getPluginDefinition()['id'])) {
                $provider = str_replace('entity:', '', $destination->getPluginDefinition()['id']);
                $provider = ltrim(stristr($destination->getPluginDefinition()['id'], ':'), ':');
                $controller = $this->entityTypeManager->getStorage($provider);
                $entities = $controller->loadMultiple($orphans);