You are here

public function CommerceSmartImporerService::getIdentifierFields in Commerce Smart Importer 8

Returnst identifiers fields machine names.

2 calls to CommerceSmartImporerService::getIdentifierFields()
CommerceSmartImporerService::formatFieldDefinition in src/Plugin/CommerceSmartImporerService.php
Helper function for getFieldDefinition, formats one field.
CommerceSmartImporerService::getExcludedFieldNames in src/Plugin/CommerceSmartImporerService.php
Helper function for getFieldDefinition, returns excluded fields.

File

src/Plugin/CommerceSmartImporerService.php, line 1770
Main Commerce Smart Importer Service.

Class

CommerceSmartImporerService
This is main Commerce Smart Importer Service.

Namespace

Drupal\commerce_smart_importer\Plugin

Code

public function getIdentifierFields() {
  return [
    'product' => [
      'product_id',
    ],
    'variation' => [
      'sku',
      'variation_id',
    ],
  ];
}