You are here

public function DrupalTerm5Migration::__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

d5/taxonomy.inc, line 11
Implementation of DrupalTermMigration for Drupal 5 sources.

Class

DrupalTerm5Migration
Handling specific to a Drupal 5 source for taxonomy terms.

Code

public function __construct(array $arguments) {
  $this->sourceFields['parent'] = t('Term: Parent term');
  parent::__construct($arguments);

  // Drupal 5 had no format for terms.
  $this
    ->addFieldMapping('format');
}