You are here

public function MigrateDestinationDomain::prepareRollback in Domain Access 7.3

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

Parameters

$domain_name: The machine_name ID of the domain about to be deleted.

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

File

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

Class

MigrateDestinationDomain
Migration class for importing domains into Drupal.

Code

public function prepareRollback($domain_name) {

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

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

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