public function Migration::getSourcePlugin in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/migrate/src/Entity/Migration.php \Drupal\migrate\Entity\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::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 257 - Contains \Drupal\migrate\Entity\Migration.
Class
- Migration
- Defines the Migration entity.
Namespace
Drupal\migrate\EntityCode
public function getSourcePlugin() {
if (!isset($this->sourcePlugin)) {
$this->sourcePlugin = \Drupal::service('plugin.manager.migrate.source')
->createInstance($this->source['plugin'], $this->source, $this);
}
return $this->sourcePlugin;
}