You are here

public function MigrateDestinationVariable::completeRollback in Migrate 7.2

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

Parameters

$name: The name of the variable which has been deleted.

1 call to MigrateDestinationVariable::completeRollback()
MigrateDestinationVariable::rollback in plugins/destinations/variable.inc
Delete a single variable.

File

plugins/destinations/variable.inc, line 180
Support for variable destinations.

Class

MigrateDestinationVariable
Destination class implementing migration into {variable}.

Code

public function completeRollback($name) {

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

  // Call any general handlers.
  migrate_handler_invoke_all('variable', 'completeRollback', $name);

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