Execute a migration's dependencies followed by the migration.
string $plugin_id: The migration id to execute.
protected function executeMigrationWithDependencies($plugin_id) {
/** @var \Drupal\migrate\Plugin\MigrationPluginManagerInterface $manager */
$manager = $this->container
->get('plugin.manager.migration');
$migrations = $manager
->createInstances($plugin_id);
foreach ($migrations as $migration) {
$this
->executeMigrationDependencies($migration);
$this
->executeMigration($migration);
}
}