public function Migration::getSourcePlugin in Drupal 9
Same name and namespace in other branches
- 8 core/modules/migrate/src/Plugin/Migration.php \Drupal\migrate\Plugin\Migration::getSourcePlugin()
- 10 core/modules/migrate/src/Plugin/Migration.php \Drupal\migrate\Plugin\Migration::getSourcePlugin()
Returns the initialized source plugin.
Return value
\Drupal\migrate\Plugin\MigrateSourceInterface The source plugin.
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 329
Class
- Migration
- Defines the Migration plugin.
Namespace
Drupal\migrate\PluginCode
public function getSourcePlugin() {
if (!isset($this->sourcePlugin)) {
$this->sourcePlugin = $this->sourcePluginManager
->createInstance($this->source['plugin'], $this->source, $this);
}
return $this->sourcePlugin;
}