public function Migration::getDestinationPlugin in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/migrate/src/Entity/Migration.php \Drupal\migrate\Entity\Migration::getDestinationPlugin()
Returns the initialized destination plugin.
Parameters
bool $stub_being_requested: TRUE to indicate that this destination will be asked to construct a stub.
Return value
\Drupal\migrate\Plugin\MigrateDestinationInterface The destination plugin.
Overrides MigrationInterface::getDestinationPlugin
2 calls to Migration::getDestinationPlugin()
- Migration::calculateDependencies in core/
modules/ migrate/ src/ Entity/ Migration.php - Calculates dependencies and stores them in the dependency property.
- Migration::checkRequirements in core/
modules/ migrate/ src/ Entity/ Migration.php - Checks if requirements for this plugin are OK.
File
- core/
modules/ migrate/ src/ Entity/ Migration.php, line 322 - Contains \Drupal\migrate\Entity\Migration.
Class
- Migration
- Defines the Migration entity.
Namespace
Drupal\migrate\EntityCode
public function getDestinationPlugin($stub_being_requested = FALSE) {
if (!isset($this->destinationPlugin)) {
if ($stub_being_requested && !empty($this->destination['no_stub'])) {
throw new MigrateSkipRowException();
}
$this->destinationPlugin = \Drupal::service('plugin.manager.migrate.destination')
->createInstance($this->destination['plugin'], $this->destination, $this);
}
return $this->destinationPlugin;
}