You are here

private function CommerceSmartImporerService::changeFieldHasLog in Commerce Smart Importer 8

Changes if log should be logged.

2 calls to CommerceSmartImporerService::changeFieldHasLog()
CommerceSmartImporerService::createNewProduct in src/Plugin/CommerceSmartImporerService.php
Creates product.
CommerceSmartImporerService::updateProduct in src/Plugin/CommerceSmartImporerService.php
Updates entity with given values.

File

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

Class

CommerceSmartImporerService
This is main Commerce Smart Importer Service.

Namespace

Drupal\commerce_smart_importer\Plugin

Code

private function changeFieldHasLog(&$fields_log) {
  $fields_log['has_log'] = FALSE;
  foreach ($fields_log as $field_log) {
    if ($field_log['has_log']) {
      $fields_log['has_log'] = TRUE;
      return;
    }
  }
}