public function TaxNumberTypeInterface::validate in Commerce Core 8.2
Validates the given tax number.
Parameters
string $tax_number: The tax number.
Return value
bool TRUE if the given tax number if valid, FALSE otherwise.
3 methods override TaxNumberTypeInterface::validate()
- EuropeanUnionVat::validate in modules/
tax/ src/ Plugin/ Commerce/ TaxNumberType/ EuropeanUnionVat.php - Validates the given tax number.
- Other::validate in modules/
tax/ src/ Plugin/ Commerce/ TaxNumberType/ Other.php - Validates the given tax number.
- SerbianVat::validate in modules/
tax/ tests/ modules/ commerce_tax_test/ src/ Plugin/ Commerce/ TaxNumberType/ SerbianVat.php - Validates the given tax number.
File
- modules/
tax/ src/ Plugin/ Commerce/ TaxNumberType/ TaxNumberTypeInterface.php, line 65
Class
- TaxNumberTypeInterface
- Defines the base interface for tax number types.
Namespace
Drupal\commerce_tax\Plugin\Commerce\TaxNumberTypeCode
public function validate($tax_number);