You are here

public function MigrationPluginManagerInterface::createStubMigration in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/migrate/src/Plugin/MigrationPluginManagerInterface.php \Drupal\migrate\Plugin\MigrationPluginManagerInterface::createStubMigration()
  2. 10 core/modules/migrate/src/Plugin/MigrationPluginManagerInterface.php \Drupal\migrate\Plugin\MigrationPluginManagerInterface::createStubMigration()

Creates a stub migration plugin from a definition array.

Parameters

array $definition: The migration definition. If an 'id' key is set then this will be used as the migration ID, if not a random ID will be assigned.

Return value

\Drupal\migrate\Plugin\Migration The stub migration.

1 method overrides MigrationPluginManagerInterface::createStubMigration()
MigrationPluginManager::createStubMigration in core/modules/migrate/src/Plugin/MigrationPluginManager.php
Creates a stub migration plugin from a definition array.

File

core/modules/migrate/src/Plugin/MigrationPluginManagerInterface.php, line 41

Class

MigrationPluginManagerInterface
Migration plugin manager interface.

Namespace

Drupal\migrate\Plugin

Code

public function createStubMigration(array $definition);