Commit d778f80b authored by catch's avatar catch

Issue #2912803 by Jo Fitzgerald, heddn: MigrationPluginManagerInterface is...

Issue #2912803 by Jo Fitzgerald, heddn: MigrationPluginManagerInterface is missing createInstancesByTag
parent 1d228954
......@@ -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) {
......
......@@ -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);
}
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