-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnode.inc
30 lines (24 loc) · 864 Bytes
/
node.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
/**
* Common mappings for the Drupal 6 node migrations.
*/
abstract class CustomNodeMigration extends DrupalNode6Migration {
public function __construct(array $arguments) {
parent::__construct($arguments);
// this below 2 lines are to preserve the d6 nid.
$this->addFieldMapping('is_new')->defaultValue(TRUE);
$this->addFieldMapping('nid', 'nid');
$this->addFieldMapping('field_legacy_nid', 'nid')
->description('We have a common field to save the D6 nid');
}
}
/**
* Mappings for Events Landing Page
*/
class CustomPageMigration extends CustomNodeMigration {
public function __construct(array $arguments) {
parent::__construct($arguments);
// $this->addFieldMapping('field_parent_path', 'field_parent_path');
// $this->addFieldMapping('field_left_callout_html', 'field_left_callout_html');
}
}