You are here

protected function CommerceExampleProductLineItemMigration::shouldProductBeAttached in Commerce Migrate 7

Should product be attached to line item.

Parameters

string[] $map: Migration map.

Return value

string[]|bool Migration map or FALSE when product should not be attached.

File

commerce_migrate_example/migrations/product_line_item.inc, line 108
Import line items of the "product" type.

Class

CommerceExampleProductLineItemMigration
Class CommerceExampleProductLineItemMigration.

Code

protected function shouldProductBeAttached(array $map) {
  return 'product' === $this
    ->type() ? $map : FALSE;
}