You are here

public function CurrencyHelper::fallbackCurrencyCode in Commerce Currency Resolver 8

Return default fallback currency from settings.

Return value

string Return currency code.

Overrides CurrencyHelperInterface::fallbackCurrencyCode

1 call to CurrencyHelper::fallbackCurrencyCode()
CurrencyHelper::defaultCurrencyCode in src/CurrencyHelper.php
Get default currency from current resolved store.

File

src/CurrencyHelper.php, line 227

Class

CurrencyHelper
Helper for various parts of the module.

Namespace

Drupal\commerce_currency_resolver

Code

public function fallbackCurrencyCode() {
  return $this->configFactory
    ->get('commerce_currency_resolver.settings')
    ->get('currency_default');
}