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.
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 = '::';
}
}
Comment | File | Size | Author |
---|---|---|---|
migrate_subfield_delimiter.patch | 826 bytes | jonathan_hunt | |
|
Comments
Comment #2
pifagorComment #4
pifagorComment #6
joseph.olstadhttps://www.drupal.org/project/migrate/releases/7.x-2.12