From d778f80bc222e3ca2c43a7929001cc8a1ec9c9aa Mon Sep 17 00:00:00 2001 From: Nathaniel Catchpole <catch@35733.no-reply.drupal.org> Date: Thu, 11 Jan 2018 20:02:52 +0000 Subject: [PATCH] Issue #2912803 by Jo Fitzgerald, heddn: MigrationPluginManagerInterface is missing createInstancesByTag --- .../migrate/src/Plugin/MigrationPluginManager.php | 8 +------- .../src/Plugin/MigrationPluginManagerInterface.php | 11 +++++++++++ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/core/modules/migrate/src/Plugin/MigrationPluginManager.php b/core/modules/migrate/src/Plugin/MigrationPluginManager.php index 55d4ec6bfdc3..74f151999bd4 100644 --- a/core/modules/migrate/src/Plugin/MigrationPluginManager.php +++ b/core/modules/migrate/src/Plugin/MigrationPluginManager.php @@ -127,13 +127,7 @@ public function createInstances($migration_id, array $configuration = []) { } /** - * Create migrations given a tag. - * - * @param string $tag - * A migration tag we want to filter by. - * - * @return array|\Drupal\migrate\Plugin\MigrationInterface[] - * An array of migration objects with the given tag. + * {@inheritdoc} */ public function createInstancesByTag($tag) { $migrations = array_filter($this->getDefinitions(), function ($migration) use ($tag) { diff --git a/core/modules/migrate/src/Plugin/MigrationPluginManagerInterface.php b/core/modules/migrate/src/Plugin/MigrationPluginManagerInterface.php index a0f648862ddc..01e4385c2e36 100644 --- a/core/modules/migrate/src/Plugin/MigrationPluginManagerInterface.php +++ b/core/modules/migrate/src/Plugin/MigrationPluginManagerInterface.php @@ -40,4 +40,15 @@ public function createInstances($id, array $configuration = []); */ public function createStubMigration(array $definition); + /** + * Create migrations given a tag. + * + * @param string $tag + * A migration tag we want to filter by. + * + * @return array|\Drupal\migrate\Plugin\MigrationInterface[] + * An array of migration objects with the given tag. + */ + public function createInstancesByTag($tag); + } -- GitLab