Created
April 22, 2021 15:31
-
-
Save jonathanfranks/10544cd4e1e6afe0afb9f1656c642d9b to your computer and use it in GitHub Desktop.
Run migrate import with update option
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$migration_id = 'xxx'; | |
/** @var \Drupal\migrate\Plugin\MigrationInterface $migration */ | |
$migration = \Drupal::service('plugin.manager.migration') | |
->createInstance($migration_id); | |
$migration->getIdMap()->prepareUpdate(); | |
$executable = new MigrateExecutable($migration, new MigrateMessage()); | |
$executable->import(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment