Issue #2741385 by mikeryan, benjy: Add getter for migration_tags

8.2.x
Nathaniel Catchpole 2016-06-20 09:30:15 +01:00
parent be7d7b2bca
commit 2491015fca
2 changed files with 22 additions and 0 deletions

View File

@ -173,6 +173,13 @@ class Migration extends PluginBase implements MigrationInterface, RequirementsIn
*/
protected $requirements = [];
/**
* An optional list of tags, used by the plugin manager for filtering.
*
* @var array
*/
protected $migration_tags = [];
/**
* These migrations, if run, must be executed before this migration.
*
@ -713,4 +720,11 @@ class Migration extends PluginBase implements MigrationInterface, RequirementsIn
return $this->destinationIds;
}
/**
* {@inheritdoc}
*/
public function getMigrationTags() {
return $this->migration_tags;
}
}

View File

@ -374,4 +374,12 @@ interface MigrationInterface extends PluginInspectionInterface, DerivativeInspec
*/
public function getDestinationIds();
/**
* The migration tags.
*
* @return array
* Migration tags.
*/
public function getMigrationTags();
}