Migrate has a hard-coded subfield delimiter of ':'. This conflicts with my use case of destination field names in an XML structure with namespaces, e.g. 'dcterms:title'. By allowing overriding of the subfield delimiter string, I can have field names containing ':'.

e.g.

class MyXMLMigration extends XMLMigration {

  public function __construct($arguments) {
    parent::__construct($arguments);
    // Override Migration subfield delimiter so we can use ':' in XML field names.
    $this->subfieldDelimiter = '::';
  }
}
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jonathan_hunt created an issue. See original summary.

pifagor’s picture

Status: Needs review » Reviewed & tested by the community

  • pifagor committed f31712c on 7.x-2.x authored by jonathan_hunt
    Issue #2873200 by jonathan_hunt, pifagor: Allow override of subfield...
pifagor’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

joseph.olstad’s picture