Commit 2d9e1c5a authored by alexpott's avatar alexpott

Issue #2514052 by phenaproxima: Remove migrate_drupal's MigratePluginManager implementation

parent 1cc027dd
......@@ -70,20 +70,4 @@ public function createInstance($plugin_id, array $configuration = array(), Migra
return $plugin;
}
/**
* Helper for the plugin type to interface map.
*
* @return array
* An array map from plugin type to interface.
*/
protected function getPluginInterfaceMap() {
return [
'destination' => 'Drupal\migrate\Plugin\MigrateDestinationInterface',
'process' => 'Drupal\migrate\Plugin\MigrateProcessInterface',
'source' => 'Drupal\migrate\Plugin\MigrateSourceInterface',
'id_map' => 'Drupal\migrate\Plugin\MigrateIdMapInterface',
'entity_field' => 'Drupal\migrate\Plugin\MigrateEntityDestinationFieldInterface',
];
}
}
services:
plugin.manager.migrate.load:
class: Drupal\migrate_drupal\Plugin\MigratePluginManager
class: Drupal\migrate\Plugin\MigratePluginManager
arguments: [load, '@container.namespaces', '@cache.discovery', '@module_handler']
plugin.manager.migrate.cckfield:
class: Drupal\migrate_drupal\Plugin\MigratePluginManager
class: Drupal\migrate\Plugin\MigratePluginManager
arguments: [cckfield, '@container.namespaces', '@cache.discovery', '@module_handler']
......@@ -17,7 +17,7 @@
use Drupal\migrate\Plugin\migrate\source\SourcePluginBase;
use Drupal\migrate_drupal\Plugin\CckFieldMigrateSourceInterface;
use Drupal\migrate\MigrationStorage as BaseMigrationStorage;
use Drupal\migrate_drupal\Plugin\MigratePluginManager;
use Drupal\migrate\Plugin\MigratePluginManager;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**
......
<?php
/**
* @file
* Contains \Drupal\migrate_drupal\Plugin\MigratePluginManager.
*/
namespace Drupal\migrate_drupal\Plugin;
use Drupal\migrate\Plugin\MigratePluginManager as BaseMigratePluginManager;
/**
* Manages migrate_drupal plugins.
*
* @see plugin_api
*
* @ingroup migration
*/
class MigratePluginManager extends BaseMigratePluginManager {
/**
* {@inheritdoc}
*/
protected function getPluginInterfaceMap() {
return parent::getPluginInterfaceMap() + [
'load' => 'Drupal\migrate_drupal\Plugin\MigrateLoadInterface',
'cckfield' => 'Drupal\migrate_drupal\Plugin\MigrateCckFieldInterface',
];
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment