function Migration::getDestinationPlugin
Same name in other branches
- 9 core/modules/migrate/src/Plugin/Migration.php \Drupal\migrate\Plugin\Migration::getDestinationPlugin()
- 8.9.x core/modules/migrate/src/Plugin/Migration.php \Drupal\migrate\Plugin\Migration::getDestinationPlugin()
- 10 core/modules/migrate/src/Plugin/Migration.php \Drupal\migrate\Plugin\Migration::getDestinationPlugin()
Overrides MigrationInterface::getDestinationPlugin
1 call to Migration::getDestinationPlugin()
- Migration::checkRequirements in core/
modules/ migrate/ src/ Plugin/ Migration.php - Checks if requirements for this plugin are OK.
File
-
core/
modules/ migrate/ src/ Plugin/ Migration.php, line 444
Class
- Migration
- Defines the Migration plugin.
Namespace
Drupal\migrate\PluginCode
public function getDestinationPlugin($stub_being_requested = FALSE) {
if ($stub_being_requested && !empty($this->destination['no_stub'])) {
throw new MigrateSkipRowException('Stub requested but not made because no_stub configuration is set.');
}
if (!isset($this->destinationPlugin)) {
$this->destinationPlugin = $this->destinationPluginManager
->createInstance($this->destination['plugin'], $this->destination, $this);
}
return $this->destinationPlugin;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.