3 namespace Drupal\migrate\Plugin;
5 use Drupal\Component\Plugin\PluginManagerInterface;
7 interface MigratePluginManagerInterface extends PluginManagerInterface {
10 * Creates a pre-configured instance of a migration plugin.
12 * A specific createInstance method is necessary to pass the migration on.
14 * @param string $plugin_id
15 * The ID of the plugin being instantiated.
16 * @param array $configuration
17 * An array of configuration relevant to the plugin instance.
18 * @param \Drupal\migrate\Plugin\MigrationInterface $migration
19 * The migration context in which the plugin will run.
22 * A fully configured plugin instance.
24 * @throws \Drupal\Component\Plugin\Exception\PluginException
25 * If the instance cannot be created, such as if the ID is invalid.
27 public function createInstance($plugin_id, array $configuration = [], MigrationInterface $migration = NULL);