public function Migration::getSourcePlugin in Drupal 10
Same name and namespace in other branches
- 8 core/modules/migrate/src/Plugin/Migration.php \Drupal\migrate\Plugin\Migration::getSourcePlugin()
- 9 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
2 calls to Migration::getSourcePlugin()
- Migration::allRowsProcessed in core/
modules/ migrate/ src/ Plugin/ Migration.php - Check if all source rows from this migration have been processed.
- 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 406
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;
}