You are here

public function ShippingMethod::getStores in Commerce Shipping 8.2

Gets the stores.

Return value

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

Overrides EntityStoresInterface::getStores

File

src/Entity/ShippingMethod.php, line 85

Class

ShippingMethod
Defines the shipping method entity class.

Namespace

Drupal\commerce_shipping\Entity

Code

public function getStores() {
  return $this
    ->get('stores')
    ->referencedEntities();
}