public function Migration::addUnmigratedDestinations in Migrate 7.2
Same name and namespace in other branches
- 6.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').
22 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.
- MigrateExampleOracleNode::__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.
File
- includes/
migration.inc, line 436 - 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, $warn_on_override = TRUE) {
if (!$issue_group) {
$issue_group = t('DNM');
}
foreach ($fields as $field) {
$this
->addFieldMapping($field, NULL, $warn_on_override)
->issueGroup($issue_group);
}
}