You are here

public function FarmAsset::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 Asset::prepareRow

2 calls to FarmAsset::prepareRow()
AnimalAsset::prepareRow in modules/core/migrate/src/Plugin/migrate/source/d7/AnimalAsset.php
Adds additional data to the row.
SensorAsset::prepareRow in modules/core/migrate/src/Plugin/migrate/source/d7/SensorAsset.php
Adds additional data to the row.
2 methods override FarmAsset::prepareRow()
AnimalAsset::prepareRow in modules/core/migrate/src/Plugin/migrate/source/d7/AnimalAsset.php
Adds additional data to the row.
SensorAsset::prepareRow in modules/core/migrate/src/Plugin/migrate/source/d7/SensorAsset.php
Adds additional data to the row.

File

modules/core/migrate/src/Plugin/migrate/source/d7/FarmAsset.php, line 27

Class

FarmAsset
Asset source from database.

Namespace

Drupal\farm_migrate\Plugin\migrate\source\d7

Code

public function prepareRow(Row $row) {
  $result = parent::prepareRow($row);
  if (!$result) {
    return FALSE;
  }

  // Prepare reference to the quick form that created this entity.
  $this
    ->prepareQuickEntityRow($row, 'asset');

  // Return success.
  return TRUE;
}