uninstalling and re-enabling modules every time we have a new migration to be registered is annoying.
To solve this we're going to add some Drush commands to our custom module to do the registration without uninstalling the module.
We're going to create 3 of them; One to delete existing configs, another to re-register migrations after they've been removed, and a third that does both so we only have to run one command.
- See more at: https://www.mediacurrent.com/blog/registering-migrations-drupal-8#sthash.KIQgDxKA.dpuf
uninstalling and re-enabling modules every time we have a new migration to be registered is annoying.
To solve this we're going to add some Drush commands to our custom module to do the registration without uninstalling the module.
We're going to create 3 of them; One to delete existing configs, another to re-register migrations after they've been removed, and a third that does both so we only have to run one command.
- See more at: https://www.mediacurrent.com/blog/registering-migrations-drupal-8#sthash.KIQgDxKA.dpuf
Migrate: The core API Migrate Drupal: Provides the classes needed to migrate Drupal to Drupal 8. Migrate Upgrade: Provides a simple user interface for running migrations from Drupal 6 or Drupal 7. There is ongoing work to include more of this UI in core. Migrate Plus: This is the current home for the pieces of Drupal 7's migrate functionality that didn't make it into core.
Migrate: The core API Migrate Drupal: Provides the classes needed to migrate Drupal to Drupal 8. Migrate Upgrade: Provides a simple user interface for running migrations from Drupal 6 or Drupal 7. There is ongoing work to include more of this UI in core. Migrate Plus: This is the current home for the pieces of Drupal 7's migrate functionality that didn't make it into core.
The migration we’ll setup will specifically target the hxxxx.html files, as it’s a pretty common requirement to migrate hundreds or thousands of semi-structured files like this.
The main workhorse is the extremely well-architected Migrate module. If you haven’t yet discovered the wonders of it’s elegant abstraction and flexibility, my suggestion is to watch the presentations on the project page to gain a firm understanding of how it works. I won’t go into the basics here, as I’m going to cover only tips related to importing static HTML.