function Migration::getSourcePlugin

Same name in other branches
  1. 9 core/modules/migrate/src/Plugin/Migration.php \Drupal\migrate\Plugin\Migration::getSourcePlugin()
  2. 8.9.x core/modules/migrate/src/Plugin/Migration.php \Drupal\migrate\Plugin\Migration::getSourcePlugin()
  3. 11.x core/modules/migrate/src/Plugin/Migration.php \Drupal\migrate\Plugin\Migration::getSourcePlugin()

Overrides MigrationInterface::getSourcePlugin

1 call to Migration::getSourcePlugin()
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 392

Class

Migration
Defines the Migration plugin.

Namespace

Drupal\migrate\Plugin

Code

public function getSourcePlugin() {
    if (!isset($this->sourcePlugin)) {
        $this->sourcePlugin = $this->sourcePluginManager
            ->createInstance($this->source['plugin'], $this->source, $this);
    }
    return $this->sourcePlugin;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.