You are here

public function StoreTaxInterface::getDefaultRates in Commerce Core 8.2

Gets the default tax rates for the given store and order item.

Parameters

\Drupal\commerce_store\Entity\StoreInterface $store: The store.

\Drupal\commerce_order\Entity\OrderItemInterface $order_item: The order item.

Return value

\Drupal\commerce_tax\TaxRate[] The tax rates, keyed by tax zone ID.

1 method overrides StoreTaxInterface::getDefaultRates()
StoreTax::getDefaultRates in modules/tax/src/StoreTax.php
Gets the default tax rates for the given store and order item.

File

modules/tax/src/StoreTaxInterface.php, line 43

Class

StoreTaxInterface

Namespace

Drupal\commerce_tax

Code

public function getDefaultRates(StoreInterface $store, OrderItemInterface $order_item);