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.
The Field Mappings doc page (https://www.drupal.org/node/1133448) says that methods can be chained, and I've done this many times myself. However, the separator works here:
// Entity references
$this->addFieldMapping('field_rights_holder', 'Rights Holder')
->separator('|');
But does not work here:
// Entity references
$this->addFieldMapping('field_rights_holder', 'Rights Holder')
->separator('|')
->sourceMigration(array('WorkNode'));
In the latter case, source values simply are not separated. In the former they are. Is this a bug?
Comments
Comment #2
Shiraz DindarWhoops, I figured out what I was doing wrong and it had nothing at all do with what I thought.
Sorry for the false alarm.
Comment #3
Shiraz Dindar