public function Promotion::setStores in Commerce Core 8.2
Sets the stores.
Parameters
\Drupal\commerce_store\Entity\StoreInterface[] $stores: The stores.
Return value
$this
Overrides EntityStoresInterface::setStores
File
- modules/
promotion/ src/ Entity/ Promotion.php, line 224
Class
- Promotion
- Defines the promotion entity class.
Namespace
Drupal\commerce_promotion\EntityCode
public function setStores(array $stores) {
$this
->set('stores', $stores);
return $this;
}