You are here

protected function Migration::onSuccess in Migrate 7.2

React when the migration has been successful.

Parameters

object $data_row: Data.

array $ids: Destination ids.

1 call to Migration::onSuccess()
Migration::import in includes/migration.inc
Perform an import operation - migrate items from source to destination.

File

includes/migration.inc, line 818
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 onSuccess($data_row, $ids) {
  $this->map
    ->saveIDMapping($this->sourceValues, $ids, $this->needsUpdate, $this->rollbackAction, $data_row->migrate_map_hash);
  $this->successes_since_feedback++;
  $this->total_successes++;
}