You are here

public function MigrateDestinationDomain::completeRollback in Domain Access 7.3

Give handlers a shot at cleaning up after a domain has been rolled back.

Parameters

$domain_name: ID of the domain which has been deleted.

1 call to MigrateDestinationDomain::completeRollback()
MigrateDestinationDomain::rollback in ./domain.migrate.inc
Delete a single domain.

File

./domain.migrate.inc, line 219
Support for domains in core Drupal objects

Class

MigrateDestinationDomain
Migration class for importing domains into Drupal.

Code

public function completeRollback($domain_name) {

  // We do nothing here but allow child classes to act.
  $migration = Migration::currentMigration();

  // Call any general handlers.
  migrate_handler_invoke_all('domain', 'completeRollback', $domain_name);

  // Then call any complete handler for this specific Migration.
  if (method_exists($migration, 'completeRollback')) {
    $migration
      ->completeRollback($domain_name);
  }
}