You are here

public function TaxTypeInterface::apply in Commerce Core 8.2

Applies the tax type to the given order.

Taxes should be added on the order item level, to make returns and refunds easier. This is true even for taxes that are only shown at the order level, such as sales taxes.

Parameters

\Drupal\commerce_order\Entity\OrderInterface $order: The order.

1 method overrides TaxTypeInterface::apply()
LocalTaxTypeBase::apply in modules/tax/src/Plugin/Commerce/TaxType/LocalTaxTypeBase.php
Applies the tax type to the given order.

File

modules/tax/src/Plugin/Commerce/TaxType/TaxTypeInterface.php, line 74

Class

TaxTypeInterface
Defines the base interface for tax types.

Namespace

Drupal\commerce_tax\Plugin\Commerce\TaxType

Code

public function apply(OrderInterface $order);