Mercurial > hg > isophonics-drupal-site
comparison core/modules/migrate_drupal/src/MigrationConfigurationTrait.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | c2387f117808 |
children | af1871eacc83 |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
108 // have been successfully executed. | 108 // have been successfully executed. |
109 // @see Drupal\migrate_drupal\Plugin\MigrationWithFollowUpInterface | 109 // @see Drupal\migrate_drupal\Plugin\MigrationWithFollowUpInterface |
110 if (!empty(array_intersect($migration->getMigrationTags(), $this->getFollowUpMigrationTags()))) { | 110 if (!empty(array_intersect($migration->getMigrationTags(), $this->getFollowUpMigrationTags()))) { |
111 continue; | 111 continue; |
112 } | 112 } |
113 // Multilingual migrations require migrate_drupal_multilingual. | |
114 $tags = $migration->getMigrationTags() ?: []; | |
115 if (in_array('Multilingual', $tags, TRUE) && (!\Drupal::service('module_handler')->moduleExists('migrate_drupal_multilingual'))) { | |
116 throw new RequirementsException(sprintf("Install migrate_drupal_multilingual to run migration '%s'.", $migration->getPluginId())); | |
117 } | |
118 | |
113 try { | 119 try { |
114 // @todo https://drupal.org/node/2681867 We should be able to validate | 120 // @todo https://drupal.org/node/2681867 We should be able to validate |
115 // the entire migration at this point. | 121 // the entire migration at this point. |
116 $source_plugin = $migration->getSourcePlugin(); | 122 $source_plugin = $migration->getSourcePlugin(); |
117 if ($source_plugin instanceof RequirementsInterface) { | 123 if ($source_plugin instanceof RequirementsInterface) { |