public function CommerceCurrencyResolversRefreshTrait::isShippingAdminRoute in Commerce Currency Resolver 8
Check shipping admin route.
1 call to CommerceCurrencyResolversRefreshTrait::isShippingAdminRoute()
- CommerceShippingCurrency::shippingCurrency in modules/
shipping/ src/ EventSubscriber/ CommerceShippingCurrency.php - Calculate rates based on current currency.
File
- src/
CommerceCurrencyResolversRefreshTrait.php, line 17
Class
- CommerceCurrencyResolversRefreshTrait
- Handle access where currency resolver can refresh order.
Namespace
Drupal\commerce_currency_resolverCode
public function isShippingAdminRoute() {
// Get current route. Skip admin path.
return \Drupal::routeMatch()
->getRawParameter('commerce_shipment');
}