You are here

public function Promotion::getStores in Commerce Core 8.2

Gets the stores.

Return value

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

Overrides EntityStoresInterface::getStores

File

modules/promotion/src/Entity/Promotion.php, line 217

Class

Promotion
Defines the promotion entity class.

Namespace

Drupal\commerce_promotion\Entity

Code

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