You are here

public function TaxType::prepareRow in Commerce Migrate 3.1.x

Same name and namespace in other branches
  1. 8.2 modules/commerce/src/Plugin/migrate/source/commerce1/TaxType.php \Drupal\commerce_migrate_commerce\Plugin\migrate\source\commerce1\TaxType::prepareRow()
  2. 3.0.x modules/commerce/src/Plugin/migrate/source/commerce1/TaxType.php \Drupal\commerce_migrate_commerce\Plugin\migrate\source\commerce1\TaxType::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/commerce/src/Plugin/migrate/source/commerce1/TaxType.php, line 45

Class

TaxType
Gets Commerce 1 commerce_tax_type data from database.

Namespace

Drupal\commerce_migrate_commerce\Plugin\migrate\source\commerce1

Code

public function prepareRow(Row $row) {

  // Use the site default country for the tax types.
  $row
    ->setSourceProperty('default_country', $this
    ->variableGet('site_default_country', NULL));
  return parent::prepareRow($row);
}