From 2491015fca72393bc739569cbc34a51ba0b5d420 Mon Sep 17 00:00:00 2001 From: Nathaniel Catchpole Date: Mon, 20 Jun 2016 09:30:15 +0100 Subject: [PATCH] Issue #2741385 by mikeryan, benjy: Add getter for migration_tags --- core/modules/migrate/src/Plugin/Migration.php | 14 ++++++++++++++ .../migrate/src/Plugin/MigrationInterface.php | 8 ++++++++ 2 files changed, 22 insertions(+) diff --git a/core/modules/migrate/src/Plugin/Migration.php b/core/modules/migrate/src/Plugin/Migration.php index abad54f4d01..9f9b518719e 100644 --- a/core/modules/migrate/src/Plugin/Migration.php +++ b/core/modules/migrate/src/Plugin/Migration.php @@ -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; + } + } diff --git a/core/modules/migrate/src/Plugin/MigrationInterface.php b/core/modules/migrate/src/Plugin/MigrationInterface.php index 7572760b59b..18d2c666302 100644 --- a/core/modules/migrate/src/Plugin/MigrationInterface.php +++ b/core/modules/migrate/src/Plugin/MigrationInterface.php @@ -374,4 +374,12 @@ interface MigrationInterface extends PluginInspectionInterface, DerivativeInspec */ public function getDestinationIds(); + /** + * The migration tags. + * + * @return array + * Migration tags. + */ + public function getMigrationTags(); + }