You are here

public function PriceList::getStoreIds in Commerce Pricelist 8.2

Gets the store IDs.

Return value

int[] The store IDs.

Overrides EntityStoresInterface::getStoreIds

File

src/Entity/PriceList.php, line 110

Class

PriceList
Defines the Price list entity.

Namespace

Drupal\commerce_pricelist\Entity

Code

public function getStoreIds() {
  $store_ids = [];
  foreach ($this
    ->get('stores') as $field_item) {
    $store_ids[] = $field_item->target_id;
  }
  return $store_ids;
}