public function DrupalTerm6Migration::__construct in Drupal-to-Drupal data migration 7.2
In addition to the arguments supported by DrupalMigration, we add the following required arguments:
source_vocabulary - Unique identifier for the source vocabulary (a vid through Drupal 6, machine name for Drupal 7 and later). This may be a comma-separated list, to support merging multiple vocabularies into one. destination_vocabulary - Machine name of the destination vocabulary.
Parameters
array $arguments:
Overrides DrupalTermMigration::__construct
File
- d6/
taxonomy.inc, line 11 - Implementation of DrupalTermMigration for Drupal 6 sources.
Class
- DrupalTerm6Migration
- Handling specific to a Drupal 6 source for taxonomy terms.
Code
public function __construct(array $arguments) {
$this->sourceFields['parent'] = t('Term: Parent term');
parent::__construct($arguments);
// Drupal 6 had no format for terms.
$this
->addFieldMapping('format');
}