Skip to content
Snippets Groups Projects
Commit efc030e3 authored by Karthik Kumar D K's avatar Karthik Kumar D K Committed by Mike Ryan
Browse files

Issue #2637432 by heykarthikwithu: Replace the entity manager with the entity...

Issue #2637432 by heykarthikwithu: Replace the entity manager with the entity type manager in MigrationGroup.php and remove unused imports
parent 56f37d54
No related branches found
No related tags found
No related merge requests found
......@@ -55,7 +55,7 @@ class MigrationGroup extends ConfigEntityBase implements MigrationGroupInterface
// Order the migrations according to their dependencies.
/** @var MigrationInterface[] $migrations */
$migrations = \Drupal::entityManager()->getStorage('migration')->loadMultiple($names);
$migrations = \Drupal::entityTypeManager()->getStorage('migration')->loadMultiple($names);
// Delete in reverse order, so dependencies are never violated.
$migrations = array_reverse($migrations);
......
......@@ -7,8 +7,6 @@
namespace Drupal\migrate_plus\Event;
use Drupal\migrate\Entity\MigrationInterface;
use Drupal\migrate\MigrateSkipRowException;
use Drupal\migrate\Plugin\MigrateSourceInterface;
use Drupal\migrate\Row;
use Symfony\Component\EventDispatcher\Event;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment