From 63f2e26eba7af631a694bdab5af8fa87fd76908a Mon Sep 17 00:00:00 2001 From: webchick <webchick@24967.no-reply.drupal.org> Date: Tue, 7 Jan 2014 21:45:10 -0800 Subject: [PATCH] Issue #2168265 by andypost: Allow migrate plugins to be altered and cached. --- .../migrate/lib/Drupal/migrate/Plugin/MigratePluginManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/migrate/lib/Drupal/migrate/Plugin/MigratePluginManager.php b/core/modules/migrate/lib/Drupal/migrate/Plugin/MigratePluginManager.php index 783bd39d31f3..14692cdf69ae 100644 --- a/core/modules/migrate/lib/Drupal/migrate/Plugin/MigratePluginManager.php +++ b/core/modules/migrate/lib/Drupal/migrate/Plugin/MigratePluginManager.php @@ -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')) { -- GitLab