function DestinationBase::getDestinationModule
Overrides MigrateDestinationInterface::getDestinationModule
1 method overrides DestinationBase::getDestinationModule()
- Config::getDestinationModule in core/
modules/ migrate/ src/ Plugin/ migrate/ destination/ Config.php - Gets the destination module handling the destination data.
File
-
core/
modules/ migrate/ src/ Plugin/ migrate/ destination/ DestinationBase.php, line 123
Class
- DestinationBase
- Base class for migrate destination classes.
Namespace
Drupal\migrate\Plugin\migrate\destinationCode
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);
}
}