$values['destination'
]['default_bundle'
] =
$node_type;
// If this migration is based on the d6_node_revision migration or
// is for translations of nodes, it should explicitly depend on the
// corresponding d6_node variant.
if (in_array($base_plugin_definition['id'
],
['d6_node_revision', 'd6_node_translation'
])) { $values['migration_dependencies'
]['required'
][] = 'd6_node:' .
$node_type;
} /** @var \Drupal\migrate\Plugin\Migration $migration */
$migration = \Drupal::
service('plugin.manager.migration'
)->
createStubMigration($values);
$this->fieldDiscovery->
addBundleFieldProcesses($migration, 'node',
$node_type);
$this->derivatives
[$node_type] =
$migration->
getPluginDefinition();
} } catch (DatabaseExceptionWrapper
$e) { // Once we begin iterating the source plugin it is possible that the
// source tables will not exist. This can happen when the
// MigrationPluginManager gathers up the migration definitions but we do
// not actually have a Drupal 6 source database.
} return $this->derivatives;
}