You are here

private function CSVImportForm::getOverrideValue in Commerce Smart Importer 8

Reads from file if there are override values.

1 call to CSVImportForm::getOverrideValue()
CSVImportForm::importProducts in src/Form/CSVImportForm.php
Reads part of CSV file and imports it if it is valid.

File

src/Form/CSVImportForm.php, line 447

Class

CSVImportForm
Class CSVImportForm enales you upload CSV and import products from it.

Namespace

Drupal\commerce_smart_importer\Form

Code

private function getOverrideValue($override_values, $row, $type) {
  if (isset($override_values[$row][$type])) {
    return $override_values[$row][$type];
  }
  else {
    return [];
  }
}