You are here

public function PriceList::setStores in Commerce Pricelist 8.2

Sets the stores.

Parameters

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

Return value

$this

Overrides EntityStoresInterface::setStores

File

src/Entity/PriceList.php, line 102

Class

PriceList
Defines the Price list entity.

Namespace

Drupal\commerce_pricelist\Entity

Code

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