You are here

public function Promotion::setStoreIds in Commerce Core 8.2

Sets the store IDs.

Parameters

int[] $store_ids: The store IDs.

Return value

$this

Overrides EntityStoresInterface::setStoreIds

File

modules/promotion/src/Entity/Promotion.php, line 243

Class

Promotion
Defines the promotion entity class.

Namespace

Drupal\commerce_promotion\Entity

Code

public function setStoreIds(array $store_ids) {
  $this
    ->set('stores', $store_ids);
  return $this;
}