Commit 63f2e26e authored by webchick's avatar webchick

Issue #2168265 by andypost: Allow migrate plugins to be altered and cached.

parent 06054932
......@@ -50,7 +50,7 @@ public function __construct($type, \Traversable $namespaces, CacheBackendInterfa
* A specific createInstance method is necessary to pass the migration on.
public function createInstance($plugin_id, array $configuration = array(), MigrationInterface $migration = NULL) {
$plugin_definition = $this->discovery->getDefinition($plugin_id);
$plugin_definition = $this->getDefinition($plugin_id);
$plugin_class = DefaultFactory::getPluginClass($plugin_id, $plugin_definition);
// If the plugin provides a factory method, pass the container to it.
if (is_subclass_of($plugin_class, 'Drupal\Core\Plugin\ContainerFactoryPluginInterface')) {
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