3 namespace Drupal\migrate\Plugin;
5 use Drupal\Component\Plugin\PluginManagerInterface;
8 * Migration plugin manager interface.
10 interface MigrationPluginManagerInterface extends PluginManagerInterface {
13 * Create pre-configured instance of plugin derivatives.
16 * Either the plugin ID or the base plugin ID of the plugins being
17 * instantiated. Also accepts an array of plugin IDs and an empty array to
19 * @param array $configuration
20 * An array of configuration relevant to the plugin instances. Keyed by the
23 * @return \Drupal\migrate\Plugin\MigrationInterface[]
24 * Fully configured plugin instances.
26 * @throws \Drupal\Component\Plugin\Exception\PluginException
27 * If an instance cannot be created, such as if the ID is invalid.
29 public function createInstances($id, array $configuration = []);
32 * Creates a stub migration plugin from a definition array.
34 * @param array $definition
35 * The migration definition. If an 'id' key is set then this will be used as
36 * the migration ID, if not a random ID will be assigned.
38 * @return \Drupal\migrate\Plugin\Migration
41 public function createStubMigration(array $definition);