Sometimes it is necessary to add extra information in our entities to migrate the content to Drupal 8.
Let’s say that I want to migrate the articles content type from Drupal 7 to Drupal 8 and as part of that I want to migrate the tags with my articles.
There are two options:
- Create a new migration for the taxonomy terms and later link them using the
migration_lookup
plugin. - Make the article migration check to see if the terms exist already and if not then create them.
I will go with option two in this example. To do that I’m going to use the Migrate Plus module, which provides some handy plugins such as entity_generate.