public function TaxTypeBase::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.
Overrides TaxTypeInterface::applies
1 method overrides TaxTypeBase::applies()
- LocalTaxTypeBase::applies in modules/
tax/ src/ Plugin/ Commerce/ TaxType/ LocalTaxTypeBase.php - Checks whether the tax type applies to the given order.
File
- modules/
tax/ src/ Plugin/ Commerce/ TaxType/ TaxTypeBase.php, line 212
Class
- TaxTypeBase
- Provides the base class for tax types.
Namespace
Drupal\commerce_tax\Plugin\Commerce\TaxTypeCode
public function applies(OrderInterface $order) {
return TRUE;
}