Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Wishlist item from Drupalcon - shortcuts for mapping identically-named fields, and generating do-not-migrate mappings. For example, replacing:
$this->addFieldMapping('title', 'title');
$this->addFieldMapping('body', 'body');
$this->addFieldMapping('uid')
->issueGroup(t('DNM'));
$this->addFieldMapping('sticky')
->issueGroup(t('DNM'));
$this->addFieldMapping(NULL, 'proprietary_data')
->issueGroup(t('DNM'));
$this->addFieldMapping(NULL, 'skip_this_field')
->issueGroup(t('DNM'));
with:
$this->addSimpleMappings(array('title', 'body'));
$this->addUnmigratedDestinations(array('uid', 'sticky'));
$this->addUnmigratedSources(array('proprietary_data', 'skip_this_field'));
Comments
Comment #1
mikeryanDone!
Comment #2
moshe weitzman CreditAttribution: moshe weitzman commentedLove it.