You are here

public function Order::getStoreId in Commerce Core 8.2

Gets the store ID.

Return value

int The store ID.

Overrides EntityStoreInterface::getStoreId

File

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

Class

Order
Defines the order entity class.

Namespace

Drupal\commerce_order\Entity

Code

public function getStoreId() {
  return $this
    ->get('store_id')->target_id;
}