You are here

public function ShippingMethod::setStoreIds in Commerce Shipping 8.2

Sets the store IDs.

Parameters

int[] $store_ids: The store IDs.

Return value

$this

Overrides EntityStoresInterface::setStoreIds

File

src/Entity/ShippingMethod.php, line 111

Class

ShippingMethod
Defines the shipping method entity class.

Namespace

Drupal\commerce_shipping\Entity

Code

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