public function MigrateDestinationDomain::prepare in Domain Access 7.3
Implementation of MigrateDestination::prepare().
1 call to MigrateDestinationDomain::prepare()
- MigrateDestinationDomain::import in ./
domain.migrate.inc - Import a single row.
File
- ./
domain.migrate.inc, line 142 - Support for domains in core Drupal objects
Class
- MigrateDestinationDomain
- Migration class for importing domains into Drupal.
Code
public function prepare($domain, stdClass $row) {
// We do nothing here but allow child classes to act.
$migration = Migration::currentMigration();
$domain->migrate = array(
'machineName' => $migration
->getMachineName(),
);
// Call any general handlers.
migrate_handler_invoke_all('domain', 'prepare', $domain, $row);
// Then call any prepare handler for this specific Migration.
if (method_exists($migration, 'prepare')) {
$migration
->prepare($domain, $row);
}
}