function TestMigration::setSourcePlugin

Same name in other branches
  1. 8.9.x core/modules/migrate/tests/src/Unit/MigrationTest.php \Drupal\Tests\migrate\Unit\TestMigration::setSourcePlugin()
  2. 10 core/modules/migrate/tests/src/Unit/MigrationTest.php \Drupal\Tests\migrate\Unit\TestMigration::setSourcePlugin()
  3. 11.x core/modules/migrate/tests/src/Unit/MigrationTest.php \Drupal\Tests\migrate\Unit\TestMigration::setSourcePlugin()

Sets the source Plugin.

Parameters

\Drupal\migrate\Plugin\MigrateSourceInterface $source_plugin: The source Plugin.

File

core/modules/migrate/tests/src/Unit/MigrationTest.php, line 237

Class

TestMigration
Defines the TestMigration class.

Namespace

Drupal\Tests\migrate\Unit

Code

public function setSourcePlugin(MigrateSourceInterface $source_plugin) {
    $this->sourcePlugin = $source_plugin;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.