public function TaxTypeInterface::applies in Commerce Core 8.2
Checks whether the tax type applies to the given order.
Parameters
\Drupal\commerce_order\Entity\OrderInterface $order: The order.
Return value
bool TRUE if the tax type applies, FALSE otherwise.
1 method overrides TaxTypeInterface::applies()
- TaxTypeBase::applies in modules/
tax/ src/ Plugin/ Commerce/ TaxType/ TaxTypeBase.php - Checks whether the tax type applies to the given order.
File
- modules/
tax/ src/ Plugin/ Commerce/ TaxType/ TaxTypeInterface.php, line 62
Class
- TaxTypeInterface
- Defines the base interface for tax types.
Namespace
Drupal\commerce_tax\Plugin\Commerce\TaxTypeCode
public function applies(OrderInterface $order);