You are here

public function Migration::endProcess in Migrate 7.2

Same name and namespace in other branches
  1. 6.2 includes/migration.inc \Migration::endProcess()

Override MigrationBase::endProcess, to call post hooks. Note that it must be public to be callable as the shutdown function.

Overrides MigrationBase::endProcess

File

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

public function endProcess() {

  // Call post-process methods
  if ($this->status == Migration::STATUS_IMPORTING) {
    $this
      ->postImport();
  }
  elseif ($this->status == Migration::STATUS_ROLLING_BACK) {
    $this
      ->postRollback();
  }
  parent::endProcess();
}