You are here

protected function CommerceCurrencyResolver::skipResolvingPrice in Commerce Currency Resolver 8

Helper to determine when resolver is active.

Return value

bool

1 call to CommerceCurrencyResolver::skipResolvingPrice()
CommerceCurrencyResolver::resolve in src/Resolver/CommerceCurrencyResolver.php
Resolves a price for the given purchasable entity.

File

src/Resolver/CommerceCurrencyResolver.php, line 125

Class

CommerceCurrencyResolver
Returns a price and currency depending of language or country.

Namespace

Drupal\commerce_currency_resolver\Resolver

Code

protected function skipResolvingPrice() {
  return $this
    ->isAdminPath() || PHP_SAPI === 'cli' && !drupal_valid_test_ua();
}