You are here

private function CommerceSmartImporerService::overrideValue in Commerce Smart Importer 8

Overrides value if is available.

1 call to CommerceSmartImporerService::overrideValue()
CommerceSmartImporerService::createNewProduct in src/Plugin/CommerceSmartImporerService.php
Creates product.

File

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

Class

CommerceSmartImporerService
This is main Commerce Smart Importer Service.

Namespace

Drupal\commerce_smart_importer\Plugin

Code

private function overrideValue(&$values, $override_values, $field_definition) {
  if (isset($override_values[$field_definition['machine_names']])) {
    $values = explode('|', $override_values[$field_definition['machine_names']]);
  }
}