You are here

public function Migration::prepareRow in Migrate 6.2

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

Default implementation of prepareRow(). This method is called from the source plugin upon first pulling the raw data from the source.

Parameters

$row: Object containing raw source data.

Return value

bool TRUE to process this row, FALSE to have the source skip it.

1 method overrides Migration::prepareRow()
WineWineMigration::prepareRow in migrate_example/wine.inc
Default implementation of prepareRow(). This method is called from the source plugin upon first pulling the raw data from the source.

File

includes/migration.inc, line 783
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 prepareRow($row) {
  $this->rollbackAction = $this->defaultRollbackAction;
  return TRUE;
}