You are here

public function Order::getStore in Commerce Core 8.2

Gets the store.

Return value

\Drupal\commerce_store\Entity\StoreInterface|null The store entity, or null.

Overrides EntityStoreInterface::getStore

File

modules/order/src/Entity/Order.php, line 133

Class

Order
Defines the order entity class.

Namespace

Drupal\commerce_order\Entity

Code

public function getStore() {
  return $this
    ->getTranslatedReferencedEntity('store_id');
}