public function ShippingFlatRate::prepareRow in Commerce Migrate 3.1.x
Same name in this branch
- 3.1.x modules/ubercart/src/Plugin/migrate/source/ShippingFlatRate.php \Drupal\commerce_migrate_ubercart\Plugin\migrate\source\ShippingFlatRate::prepareRow()
- 3.1.x modules/commerce/src/Plugin/migrate/source/commerce1/ShippingFlatRate.php \Drupal\commerce_migrate_commerce\Plugin\migrate\source\commerce1\ShippingFlatRate::prepareRow()
Same name and namespace in other branches
- 8.2 modules/ubercart/src/Plugin/migrate/source/ShippingFlatRate.php \Drupal\commerce_migrate_ubercart\Plugin\migrate\source\ShippingFlatRate::prepareRow()
- 3.0.x modules/ubercart/src/Plugin/migrate/source/ShippingFlatRate.php \Drupal\commerce_migrate_ubercart\Plugin\migrate\source\ShippingFlatRate::prepareRow()
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 SourcePluginBase::prepareRow
File
- modules/
ubercart/ src/ Plugin/ migrate/ source/ ShippingFlatRate.php, line 42
Class
- ShippingFlatRate
- Gets the flat rate shipping service.
Namespace
Drupal\commerce_migrate_ubercart\Plugin\migrate\sourceCode
public function prepareRow(Row $row) {
$currency_code = $this
->variableGet('currency_code', 'USD');
$row
->setSourceProperty('currency_code', $currency_code);
return parent::prepareRow($row);
}