comparison core/modules/migrate/src/Plugin/MigratePluginManagerInterface.php @ 0:4c8ae668cc8c

Initial import (non-working)
author Chris Cannam
date Wed, 29 Nov 2017 16:09:58 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4c8ae668cc8c
1 <?php
2
3 namespace Drupal\migrate\Plugin;
4
5 use Drupal\Component\Plugin\PluginManagerInterface;
6
7 interface MigratePluginManagerInterface extends PluginManagerInterface {
8
9 /**
10 * Creates a pre-configured instance of a migration plugin.
11 *
12 * A specific createInstance method is necessary to pass the migration on.
13 *
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.
20 *
21 * @return object
22 * A fully configured plugin instance.
23 *
24 * @throws \Drupal\Component\Plugin\Exception\PluginException
25 * If the instance cannot be created, such as if the ID is invalid.
26 */
27 public function createInstance($plugin_id, array $configuration = [], MigrationInterface $migration = NULL);
28
29 }