You are here

public function Invoice::getStoreId in Commerce Invoice 8.2

Gets the store ID.

Return value

int The store ID.

Overrides EntityStoreInterface::getStoreId

File

src/Entity/Invoice.php, line 135

Class

Invoice
Defines the invoice entity class.

Namespace

Drupal\commerce_invoice\Entity

Code

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