public function Product::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/
product/ src/ Entity/ Product.php, line 155
Class
- Product
- Defines the product entity class.
Namespace
Drupal\commerce_product\EntityCode
public function setStoreIds(array $store_ids) {
$this
->set('stores', $store_ids);
return $this;
}