You are here

public function Migration::addUnmigratedDestinations in Migrate 6.2

Same name and namespace in other branches
  1. 7.2 includes/migration.inc \Migration::addUnmigratedDestinations()

Shortcut for adding several destination fields which are to be explicitly not migrated.

Parameters

array $fields: List of fields to mark as not for migration.

string $issue_group: Issue group name to apply to the generated mappings (defaults to 'DNM').

13 calls to Migration::addUnmigratedDestinations()
BeerCommentMigration::__construct in migrate_example/beer.inc
General initialization of a Migration object.
BeerNodeMigration::__construct in migrate_example/beer.inc
General initialization of a Migration object.
BeerUserMigration::__construct in migrate_example/beer.inc
General initialization of a Migration object.
MigrateExampleOracle::__construct in migrate_example/migrate_example_oracle/migrate_example_oracle.migrate.inc
General initialization of a Migration object.
WineCommentMigration::__construct in migrate_example/wine.inc
General initialization of a Migration object.

... See full list

File

includes/migration.inc, line 251
Defines the base class for import/rollback processes.

Class

Migration
The base class for all import objects. This is where most of the smarts of the migrate module resides. Migrations are created by deriving from this class, and in the constructor (after calling parent::__construct()) initializing at a minimum the name,…

Code

public function addUnmigratedDestinations(array $fields, $issue_group = NULL) {
  if (!$issue_group) {
    $issue_group = t('DNM');
  }
  foreach ($fields as $field) {
    $this
      ->addFieldMapping($field)
      ->issueGroup($issue_group);
  }
}