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\EntityCode
public function getStores() {
return $this
->getTranslatedReferencedEntities('stores');
}