You are here

public function Product::getStores in Commerce Core 8.2

Gets the stores.

Return value

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

Overrides EntityStoresInterface::getStores

File

modules/product/src/Entity/Product.php, line 129

Class

Product
Defines the product entity class.

Namespace

Drupal\commerce_product\Entity

Code

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