You are here

protected function MigrateExecutable::getSource in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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.

1 call to MigrateExecutable::getSource()
MigrateExecutable::import in core/modules/migrate/src/MigrateExecutable.php
Performs an import operation - migrate items from source to destination.

File

core/modules/migrate/src/MigrateExecutable.php, line 153
Contains \Drupal\migrate\MigrateExecutable.

Class

MigrateExecutable
Defines a migrate executable class.

Namespace

Drupal\migrate

Code

protected function getSource() {
  if (!isset($this->source)) {
    $this->source = $this->migration
      ->getSourcePlugin();
  }
  return $this->source;
}