You are here

private function CSVUpdateForm::isEmptyLine in Commerce Smart Importer 8

Checks if line is empty.

1 call to CSVUpdateForm::isEmptyLine()
CSVUpdateForm::readCsvProductsToUpdate in src/Form/CSVUpdateForm.php
Reads and formats products for update.

File

src/Form/CSVUpdateForm.php, line 487

Class

CSVUpdateForm
Class CSVUpdateForm.

Namespace

Drupal\commerce_smart_importer\Form

Code

private function isEmptyLine($fields, $line) {
  foreach ($fields as $field) {
    if (!empty($line[$field['index']])) {
      return FALSE;
    }
  }
  return TRUE;
}