You are here

public function CommerceSmartImporerService::getAllStoreIds in Commerce Smart Importer 8

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

File

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

Class

CommerceSmartImporerService
This is main Commerce Smart Importer Service.

Namespace

Drupal\commerce_smart_importer\Plugin

Code

public function getAllStoreIds() {
  $store_results = $this->database
    ->query("SELECT store_id FROM {commerce_store_field_data}")
    ->fetchAll();
  $stores = [];
  foreach ($store_results as $store_result) {
    $stores[] = current($store_result);
  }
  return $stores;
}