Posts

Showing posts with the label process plugins

JSON-D8 Migration: By Using Available and Custom Process Plugins

Image
In our XML to Drupal 8 bog post series, we have seen that how can we do the XML to D8 migration by just using YML file , extend the capabilities of the migration by using available Process plugins and finally extended the capabilities of the migration by using Custom Process plugins. As the JSON to Drupal 8 migration is quite similar to XML migration so we will do the complete JSON to Drupal 8 migration in this Blog post. As we are migrating from JSON so we have created a sample JSON file which looks like below, Our migration configuration entity (YML) file under config/install defines Source (JSON file and fields in it), Destination (Drupal entity) and Field mappings (Process plugins). It looks like below, The only change between XML and JSON migration is "data_parser_plugin" as shown below,   Data parser plugin is part of Migrate Plus module. It means we don't need to write custom code for most of the cases while migrating from XML or JSON t...

XML-D8 Migration: Extending the migration capabilities by using available Process plugins

Image
In our last blog post, XML-D8 Migration: Very basic migration by just using YML file , we have done very basic XML to Drupal 8 migration. In this blog post, we will extend the capabilities of that migration by using available Process plugins . To add-on, we have added new fields like city, state, site url, site name, keywords, creation date to the XML file and now it looks like below, We will be migrating city and state fields into place field in D8 by using concat process plugin . Site name and site url fields will be migrated to URL field in D8. Creation date field will be migrated to content creation date field in D8 using callback process plugin . Keywords field will be migrated to tags taxonomy field referenced in content type. For tags migration, we will be using explode process plugin and concept of pipeline . We have added the new fields in page content type on D8 site and it looks like below, Next we have added the mapping of these new fields in config/install/...