Monthly Archives: August 2018

Migrating Specific Fields in a D8 Migration

I recently needed a way to update the value of a single field of a D7 to D8 node migration. The client was already updating the migrated content so I had to be careful with what I migrated. The entity

Tagged with: , ,
Posted in Development

Migrating a Drupal 7 User Profile2 Image Field to a Drupal 8 User Image Field

Consider this scenario: Drupal 7 site contains Profile2 profile called person with image field called field_oldsite_person_image. Users each have a profile2 profile associated with their account. Drupal 8 site has an image field called field_newsite_user_photo on the user entity itself. If you need to

Tagged with: , , , ,
Posted in Development

Quick Tips for a Drupal 7 to Drupal 8 Migration

Here are a few quick tips for a Drupal 7 to Drupal 8 migration. I will add more over time; admittedly it’s pretty lame right now! For general Drupal 8 Migrate API tips, you may also want to check out

Tagged with: , , ,
Posted in Development

Only Migrating Published Nodes in a D7 to D8 Migration

I’m not going into much detail here but hopefully this helps someone. If you need to migrate only published nodes you can extend the d7_node plugin and add a condition to the query. First, create a file in your module like /modules/custom/mysite_migrate/src/Plugin/migrate/source/MysiteNewsNode.php

Tagged with: , , ,
Posted in Tech Tips