You are here

public function ProductVariationTrait::prepareRow in Commerce Migrate 8.2

Same name and namespace in other branches
  1. 3.1.x modules/ubercart/src/Plugin/migrate/source/ProductVariationTrait.php \Drupal\commerce_migrate_ubercart\Plugin\migrate\source\ProductVariationTrait::prepareRow()
  2. 3.0.x modules/ubercart/src/Plugin/migrate/source/ProductVariationTrait.php \Drupal\commerce_migrate_ubercart\Plugin\migrate\source\ProductVariationTrait::prepareRow()

File

modules/ubercart/src/Plugin/migrate/source/ProductVariationTrait.php, line 39

Class

ProductVariationTrait
Ubercart product variation source.

Namespace

Drupal\commerce_migrate_ubercart\Plugin\migrate\source

Code

public function prepareRow(Row $row) {

  // Set the currency for each variation based on Ubercart global setting.
  $row
    ->setSourceProperty('currency', $this
    ->getUbercartCurrency());
  return parent::prepareRow($row);
}