You are here

public function WebformSubmissions::prepareRow in Migrate Webform 7

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.

Overrides Migration::prepareRow

File

./submissions.inc, line 57

Class

WebformSubmissions

Code

public function prepareRow($row) {

  // skip?
  if (parent::prepareRow($row) === FALSE) {
    return FALSE;
  }
  $row->nid = $this
    ->handleSourceMigration($this->arguments['node_migrations'], $row->nid);
}