You are here

public function CommerceCurrencyResolverAmountTrait::currentCurrency in Commerce Currency Resolver 8

Get resolved currency.

2 calls to CommerceCurrencyResolverAmountTrait::currentCurrency()
CommerceCurrencyResolverAmountTrait::getPrice in src/Plugin/Commerce/CommerceCurrencyResolverAmountTrait.php
Get price based on currency price and target currency.
CommerceCurrencyResolverAmountTrait::shouldCurrencyRefresh in src/Plugin/Commerce/CommerceCurrencyResolverAmountTrait.php
Do not run conditions currency conversion on specific conditions.

File

src/Plugin/Commerce/CommerceCurrencyResolverAmountTrait.php, line 16

Class

CommerceCurrencyResolverAmountTrait
Provides common configuration for fixed amount off offers.

Namespace

Drupal\commerce_currency_resolver\Plugin\Commerce

Code

public function currentCurrency() {
  return \Drupal::service('commerce_currency_resolver.current_currency')
    ->getCurrency();
}