You are here

public function Migration::prepareRow in Migrate 7.2

Same name and namespace in other branches
  1. 6.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 call to 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.
2 methods override Migration::prepareRow()
GameBaseball::prepareRow in migrate_example_baseball/migrate_example_baseball.migrate.inc
Default implementation of prepareRow(). This method is called from the source plugin upon first pulling the raw data from the source.
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 1032
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;
}