public function DrupalComment7Migration::__construct in Drupal-to-Drupal data migration 7.2
Parameters
array $arguments:
Overrides DrupalCommentMigration::__construct
File
- d7/
comment.inc, line 15 - Implementation of DrupalCommentMigration for Drupal 7 sources.
Class
- DrupalComment7Migration
- Handling specific to a Drupal 7 source for comments.
Code
public function __construct(array $arguments) {
parent::__construct($arguments);
if (!$this->newOnly) {
$this->highwaterField = array(
'name' => 'changed',
'alias' => 'c',
'type' => 'int',
);
}
// Version-specific field mappings
$this
->addSimpleMappings(array(
'comment_body',
'created',
'changed',
'status',
'language',
));
$this
->addFieldMapping('comment_body:format', 'comment_body:format')
->callbacks(array(
$this,
'mapFormat',
));
}