/**
* Base class for migrate destination classes.
*
- * @see \Drupal\migrate\Plugin\MigrateDestinationInterface
+ * Migrate destination plugins perform the import operation of the migration.
+ * Destination plugins extend this abstract base class. A destination plugin
+ * must implement at least fields(), getIds() and import() methods. Destination
+ * plugins can also support rollback operations. For more
+ * information, refer to \Drupal\migrate\Plugin\MigrateDestinationInterface.
+ *
* @see \Drupal\migrate\Plugin\MigrateDestinationPluginManager
* @see \Drupal\migrate\Annotation\MigrateDestination
* @see plugin_api
}
}
+ /**
+ * {@inheritdoc}
+ */
+ public function getDestinationModule() {
+ if (!empty($this->configuration['destination_module'])) {
+ return $this->configuration['destination_module'];
+ }
+ if (!empty($this->pluginDefinition['destination_module'])) {
+ return $this->pluginDefinition['destination_module'];
+ }
+ if (is_string($this->migration->provider)) {
+ return $this->migration->provider;
+ }
+ else {
+ return reset($this->migration->provider);
+ }
+ }
+
}