Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Drupal to Drupal migrate, migrate associated terms
<?php
/*
* Extending DrupalNode5Migration (or 6) migrating the correct terms
* - Add the source migration and source tid
* - Declare default value
*/
$this->addFieldMapping('field_tags', '3')
->sourceMigration('Tags');
$this->addFieldMapping('field_tags:source_type')
->defaultValue('tid');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment