You are here

private function CSVExportForm::isFieldChecked in Commerce Smart Importer 8

Checks if field is checked.

1 call to CSVExportForm::isFieldChecked()
CSVExportForm::validateForm in src/Form/CSVExportForm.php
Validates form.

File

src/Form/CSVExportForm.php, line 405

Class

CSVExportForm
Form for exporting products in CSV format.

Namespace

Drupal\commerce_smart_importer\Form

Code

private function isFieldChecked(array $fields) {
  foreach ($fields as $field) {
    if (!empty($field)) {
      return TRUE;
    }
  }
  return FALSE;
}