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