public function FarmLog::prepareRow in farmOS 2.x
Adds additional data to the row.
Parameters
\Drupal\migrate\Row $row: The row object.
Return value
bool FALSE if this row needs to be skipped.
Overrides Log::prepareRow
File
- modules/
core/ migrate/ src/ Plugin/ migrate/ source/ d7/ FarmLog.php, line 30
Class
- FarmLog
- Log source from database.
Namespace
Drupal\farm_migrate\Plugin\migrate\source\d7Code
public function prepareRow(Row $row) {
$result = parent::prepareRow($row);
if (!$result) {
return FALSE;
}
// Prepare movement information.
$this
->prepareMovement($row);
// Prepare group assignment information.
$this
->prepareGroup($row);
// Prepare quantity information.
$this
->prepareQuantity($row);
// Prepare soil test information (only applicable to soil test logs).
$this
->prepareSoilTest($row);
// Prepare reference to the quick form that created this entity.
$this
->prepareQuickEntityRow($row, 'log');
// Return success.
return TRUE;
}