function MigrateDestinationPluginManager::createInstance
Same name in other branches
- 9 core/modules/migrate/src/Plugin/MigrateDestinationPluginManager.php \Drupal\migrate\Plugin\MigrateDestinationPluginManager::createInstance()
- 10 core/modules/migrate/src/Plugin/MigrateDestinationPluginManager.php \Drupal\migrate\Plugin\MigrateDestinationPluginManager::createInstance()
- 11.x core/modules/migrate/src/Plugin/MigrateDestinationPluginManager.php \Drupal\migrate\Plugin\MigrateDestinationPluginManager::createInstance()
A specific createInstance method is necessary to pass the migration on.
Overrides MigratePluginManager::createInstance
File
-
core/
modules/ migrate/ src/ Plugin/ MigrateDestinationPluginManager.php, line 64
Class
- MigrateDestinationPluginManager
- Plugin manager for migrate destination plugins.
Namespace
Drupal\migrate\PluginCode
public function createInstance($plugin_id, array $configuration = [], MigrationInterface $migration = NULL) {
if (substr($plugin_id, 0, 7) == 'entity:' && !$this->entityTypeManager
->getDefinition(substr($plugin_id, 7), FALSE)) {
$plugin_id = 'null';
}
return parent::createInstance($plugin_id, $configuration, $migration);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.