function MigrateExecutable::getSource
Same name and namespace in other branches
- 11.x core/modules/migrate/src/MigrateExecutable.php \Drupal\migrate\MigrateExecutable::getSource()
Returns the source.
Makes sure source is initialized based on migration settings.
Return value
\Drupal\migrate\Plugin\MigrateSourceInterface The source.
File
-
core/
modules/ migrate/ src/ MigrateExecutable.php, line 126
Class
- MigrateExecutable
- Defines a migrate executable class.
Namespace
Drupal\migrateCode
protected function getSource() {
if (!isset($this->source)) {
$this->source = $this->migration
->getSourcePlugin();
}
return $this->source;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.