You are here

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

d7/taxonomy.inc, line 8
Implementation of DrupalTermMigration for Drupal 7 sources.

Class

DrupalTerm7Migration
@file Implementation of DrupalTermMigration for Drupal 7 sources.

Code

public function __construct(array $arguments) {
  parent::__construct($arguments);
  $this
    ->addFieldMapping('format', 'format')
    ->callbacks(array(
    $this,
    'mapFormat',
  ));
}