class TaxRateConstraint in Commerce Product Tax 8
Tax rate constraint.
Plugin annotation
@Constraint(
id = "TaxRate",
label = @Translation("Tax rate", context = "Validation"),
)
Hierarchy
- class \Drupal\commerce_product_tax\Plugin\Validation\Constraint\TaxRateConstraint extends \Symfony\Component\Validator\Constraint
Expanded class hierarchy of TaxRateConstraint
File
- src/
Plugin/ Validation/ Constraint/ TaxRateConstraint.php, line 15
Namespace
Drupal\commerce_product_tax\Plugin\Validation\ConstraintView source
class TaxRateConstraint extends Constraint {
public $singleTaxRatePerZoneMessage = '%name: cannot select more than one tax rate per zone.';
public $invalidRateMessage = '%name: the selected tax rate %value is not valid.';
public $invalidZoneMessage = '%name: the selected tax zone %value is not allowed.';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TaxRateConstraint:: |
public | property | ||
TaxRateConstraint:: |
public | property | ||
TaxRateConstraint:: |
public | property |