You are here

protected function Migration::preRollback in Migrate 6.2

Same name and namespace in other branches
  1. 7.2 includes/migration.inc \Migration::preRollback()
1 call to Migration::preRollback()
Migration::beginProcess in includes/migration.inc
Override MigrationBase::beginProcess, to make sure the map/message tables are present.

File

includes/migration.inc, line 359
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

protected function preRollback() {
  if (method_exists($this->destination, 'preRollback')) {
    $this->destination
      ->preRollback();
  }
}