You are here

public function ShippingFlatRate::prepareRow in Commerce Migrate 8.2

Same name in this branch
  1. 8.2 modules/ubercart/src/Plugin/migrate/source/ShippingFlatRate.php \Drupal\commerce_migrate_ubercart\Plugin\migrate\source\ShippingFlatRate::prepareRow()
  2. 8.2 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
  1. 3.1.x modules/ubercart/src/Plugin/migrate/source/ShippingFlatRate.php \Drupal\commerce_migrate_ubercart\Plugin\migrate\source\ShippingFlatRate::prepareRow()
  2. 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\source

Code

public function prepareRow(Row $row) {
  $currency_code = $this
    ->variableGet('currency_code', 'USD');
  $row
    ->setSourceProperty('currency_code', $currency_code);
  return parent::prepareRow($row);
}