comparison core/modules/migrate_drupal/src/MigrationConfigurationTrait.php @ 4:a9cd425dd02b

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:11:55 +0000
parents c75dbcec494b
children 12f9dff5fda9
comparison
equal deleted inserted replaced
3:307d7a7fd348 4:a9cd425dd02b
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) {