Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. MigrateExecutable.php

function 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 127

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;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal