function Migration::getDestinationPlugin

Same name in other branches
  1. 9 core/modules/migrate/src/Plugin/Migration.php \Drupal\migrate\Plugin\Migration::getDestinationPlugin()
  2. 8.9.x core/modules/migrate/src/Plugin/Migration.php \Drupal\migrate\Plugin\Migration::getDestinationPlugin()
  3. 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

File

core/modules/migrate/src/Plugin/Migration.php, line 444

Class

Migration
Defines the Migration plugin.

Namespace

Drupal\migrate\Plugin

Code

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.