You are here

public function EntityStoresInterface::setStores in Commerce Core 8.2

Sets the stores.

Parameters

\Drupal\commerce_store\Entity\StoreInterface[] $stores: The stores.

Return value

$this

2 methods override EntityStoresInterface::setStores()
Product::setStores in modules/product/src/Entity/Product.php
Sets the stores.
Promotion::setStores in modules/promotion/src/Entity/Promotion.php
Sets the stores.

File

modules/store/src/Entity/EntityStoresInterface.php, line 26

Class

EntityStoresInterface
Defines a common interface for entities that belong to one or more stores.

Namespace

Drupal\commerce_store\Entity

Code

public function setStores(array $stores);