You are here

public function Store::getDefaultCurrency in Commerce Core 8.2

Gets the default store currency.

Return value

\Drupal\commerce_price\Entity\CurrencyInterface The default store currency.

Overrides StoreInterface::getDefaultCurrency

File

modules/store/src/Entity/Store.php, line 120

Class

Store
Defines the store entity class.

Namespace

Drupal\commerce_store\Entity

Code

public function getDefaultCurrency() {
  return $this
    ->get('default_currency')->entity;
}