diff -u b/src/Controller/MessageController.php b/src/Controller/MessageController.php --- b/src/Controller/MessageController.php +++ b/src/Controller/MessageController.php @@ -26,7 +26,7 @@ * * @var \Drupal\migrate\Plugin\MigrationPluginManagerInterface */ - protected $migrationConfigEntityPluginManager; + protected $migrationPluginManager; /** * {@inheritdoc} @@ -34,7 +34,7 @@ public static function create(ContainerInterface $container) { return new static( $container->get('database'), - $container->get('plugin.manager.config_entity_migration') + $container->get('plugin.manager.migration') ); } @@ -43,12 +43,12 @@ * * @param \Drupal\Core\Database\Connection $database * A database connection. - * @param \Drupal\migrate\Plugin\MigrationPluginManagerInterface $migration_config_entity_plugin_manager - * The plugin manager for config entity-based migrations. + * @param \Drupal\migrate\Plugin\MigrationPluginManagerInterface $migration_plugin_manager + * The migration plugin manager. */ - public function __construct(Connection $database, MigrationPluginManagerInterface $migration_config_entity_plugin_manager) { + public function __construct(Connection $database, MigrationPluginManagerInterface $migration_plugin_manager) { $this->database = $database; - $this->migrationConfigEntityPluginManager = $migration_config_entity_plugin_manager; + $this->migrationPluginManager = $migration_plugin_manager; } /** @@ -84,7 +84,7 @@ $rows = []; $classes = static::getLogLevelClassMap(); /** @var MigrationInterface $migration */ - $migration = $this->migrationConfigEntityPluginManager->createInstance($migration); + $migration = $this->migrationPluginManager->createInstance($migration); $source_id_field_names = array_keys($migration->getSourcePlugin()->getIds()); $column_number = 1; foreach ($source_id_field_names as $source_id_field_name) { diff -u b/src/Controller/MigrationController.php b/src/Controller/MigrationController.php --- b/src/Controller/MigrationController.php +++ b/src/Controller/MigrationController.php @@ -5,6 +5,7 @@ use Drupal\Core\Controller\ControllerBase; use Drupal\Component\Utility\Xss; use Drupal\Component\Utility\Html; +use Drupal\migrate\Plugin\MigrationInterface; use Drupal\migrate\Plugin\MigrationPluginManagerInterface; use Drupal\Core\DependencyInjection\ContainerInjectionInterface; use Symfony\Component\DependencyInjection\ContainerInterface; @@ -19,16 +20,16 @@ * * @var \Drupal\migrate\Plugin\MigrationPluginManagerInterface */ - protected $migrationConfigEntityPluginManager; + protected $migrationPluginManager; /** * Constructs a new MigrationController object. * - * @param \Drupal\migrate\Plugin\MigrationPluginManagerInterface $migration_config_entity_plugin_manager + * @param \Drupal\migrate\Plugin\MigrationPluginManagerInterface $migration_plugin_manager * The plugin manager for config entity-based migrations. */ - public function __construct(MigrationPluginManagerInterface $migration_config_entity_plugin_manager) { - $this->migrationConfigEntityPluginManager = $migration_config_entity_plugin_manager; + public function __construct(MigrationPluginManagerInterface $migration_plugin_manager) { + $this->migrationPluginManager = $migration_plugin_manager; } /** @@ -36,7 +37,7 @@ */ public static function create(ContainerInterface $container) { return new static( - $container->get('plugin.manager.config_entity_migration') + $container->get('plugin.manager.migration') ); } @@ -53,8 +54,8 @@ */ public function overview($migration_group, $migration) { - /** @var MigrationInterface $migration */ - $migration = $this->migrationConfigEntityPluginManager->createInstance($migration); + /** @var \Drupal\migrate\Plugin\MigrationInterface $migration */ + $migration = $this->migrationPluginManager->createInstance($migration); $build['overview'] = [ '#type' => 'fieldset', @@ -105,8 +106,8 @@ */ public function source($migration_group, $migration) { - /** @var MigrationInterface $migration */ - $migration = $this->migrationConfigEntityPluginManager->createInstance($migration); + /** @var \Drupal\migrate\Plugin\MigrationInterface $migration */ + $migration = $this->migrationPluginManager->createInstance($migration); // Source field information. $build['source'] = [ @@ -157,8 +158,8 @@ */ public function process($migration_group, $migration) { - /** @var MigrationInterface $migration */ - $migration = $this->migrationConfigEntityPluginManager->createInstance($migration); + /** @var \Drupal\migrate\Plugin\MigrationInterface $migration */ + $migration = $this->migrationPluginManager->createInstance($migration); // Process information. $build['process'] = [ @@ -219,8 +220,8 @@ * A render array as expected by drupal_render(). */ public function destination($migration_group, $migration) { - /** @var MigrationInterface $migration */ - $migration = $this->migrationConfigEntityPluginManager->createInstance($migration); + /** @var \Drupal\migrate\Plugin\MigrationInterface $migration */ + $migration = $this->migrationPluginManager->createInstance($migration); // Destination field information. $build['destination'] = [ diff -u b/src/Controller/MigrationListBuilder.php b/src/Controller/MigrationListBuilder.php --- b/src/Controller/MigrationListBuilder.php +++ b/src/Controller/MigrationListBuilder.php @@ -34,7 +34,7 @@ * * @var \Drupal\migrate\Plugin\MigrationPluginManagerInterface */ - protected $migrationConfigEntityPluginManager; + protected $migrationPluginManager; /** * Constructs a new EntityListBuilder object. @@ -45,13 +45,13 @@ * The entity storage class. * @param \Drupal\Core\Routing\CurrentRouteMatch $current_route_match * The current route match service. - * @param \Drupal\migrate\Plugin\MigrationPluginManagerInterface $migration_config_entity_plugin_manager + * @param \Drupal\migrate\Plugin\MigrationPluginManagerInterface $migration_plugin_manager * The plugin manager for config entity-based migrations. */ - public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, CurrentRouteMatch $current_route_match, MigrationPluginManagerInterface $migration_config_entity_plugin_manager) { + public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, CurrentRouteMatch $current_route_match, MigrationPluginManagerInterface $migration_plugin_manager) { parent::__construct($entity_type, $storage); $this->currentRouteMatch = $current_route_match; - $this->migrationConfigEntityPluginManager = $migration_config_entity_plugin_manager; + $this->migrationPluginManager = $migration_plugin_manager; } /** @@ -62,7 +62,7 @@ $entity_type, $container->get('entity.manager')->getStorage($entity_type->id()), $container->get('current_route_match'), - $container->get('plugin.manager.config_entity_migration') + $container->get('plugin.manager.migration') ); } @@ -122,10 +122,10 @@ * @return array * A render array of the table row for displaying the plugin information. * - * @see Drupal\Core\Entity\EntityListController::render() + * @see \Drupal\Core\Entity\EntityListController::render() */ public function buildRow(EntityInterface $migration_entity) { - $migration = $this->migrationConfigEntityPluginManager->createInstance($migration_entity->id()); + $migration = $this->migrationPluginManager->createInstance($migration_entity->id()); $migration_group = $migration->get('migration_group'); if (!$migration_group) { $migration_group = 'default'; only in patch2: unchanged: --- a/migrate_tools.drush.inc +++ b/migrate_tools.drush.inc @@ -265,7 +265,7 @@ function _drush_migrate_tools_execute_migration(MigrationInterface $migration, $ if (drush_get_option('execute-dependencies')) { if ($required_IDS = $migration->get('requirements')) { - $manager = \Drupal::service('plugin.manager.config_entity_migration'); + $manager = \Drupal::service('plugin.manager.migration'); $required_migrations = $manager->createInstances($required_IDS); $dependency_options = array_merge($options, ['is_dependency' => TRUE]); array_walk($required_migrations, __FUNCTION__, $dependency_options);