You are here

public function CurrencyHelper::getSourceType in Commerce Currency Resolver 8

Get how currency is mapped in the system. By country, language, cookie.

Return value

string Return mapping type.

Overrides CurrencyHelperInterface::getSourceType

See also

commerce_currency_resolver.settings

File

src/CurrencyHelper.php, line 195

Class

CurrencyHelper
Helper for various parts of the module.

Namespace

Drupal\commerce_currency_resolver

Code

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