function MigrationPluginManagerInterface::createStubMigration

Same name in other branches
  1. 8.9.x 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()
  3. 11.x 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);

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