drupal/core/modules/migrate/src/Plugin/MigrationPluginManagerInter...

36 lines
944 B
PHP

<?php
/**
* @file
* Contains \Drupal\migrate\Plugin\MigrationPluginManagerInterface.
*/
namespace Drupal\migrate\Plugin;
use Drupal\Component\Plugin\PluginManagerInterface;
/**
* Migration plugin manager interface
*/
interface MigrationPluginManagerInterface extends PluginManagerInterface {
/**
* Create pre-configured instance of plugin derivatives.
*
* @param string $id
* Either the plugin ID or the base plugin ID of the plugins being
* instantiated.
* @param array $configuration
* An array of configuration relevant to the plugin instances. Keyed by the
* plugin id.
*
* @return \Drupal\migrate\Entity\MigrationInterface[]
* Fully configured plugin instances.
*
* @throws \Drupal\Component\Plugin\Exception\PluginException
* If the instance cannot be created, such as if the ID is invalid.
*/
public function createInstances($id, array $configuration = array());
}