protected function CanadianSalesTax::matchesAddress in Commerce Core 8.2
Checks whether the tax type matches the store's billing address.
Parameters
\Drupal\commerce_store\Entity\StoreInterface $store: The store.
Return value
bool TRUE if the tax type matches the billing address, FALSE otherwise.
Overrides LocalTaxTypeBase::matchesAddress
File
- modules/
tax/ src/ Plugin/ Commerce/ TaxType/ CanadianSalesTax.php, line 34
Class
- CanadianSalesTax
- Provides the Canadian sales tax type.
Namespace
Drupal\commerce_tax\Plugin\Commerce\TaxTypeCode
protected function matchesAddress(StoreInterface $store) {
return $store
->getAddress()
->getCountryCode() == 'CA';
}