public function ProductVariationTrait::prepareRow in Commerce Migrate 3.0.x
Same name and namespace in other branches
- 8.2 modules/ubercart/src/Plugin/migrate/source/ProductVariationTrait.php \Drupal\commerce_migrate_ubercart\Plugin\migrate\source\ProductVariationTrait::prepareRow()
- 3.1.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\sourceCode
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);
}