You are here

class TaxNumberConstraint in Commerce Core 8.2

Tax number constraint.

Plugin annotation


@Constraint(
  id = "TaxNumber",
  label = @Translation("Tax number", context = "Validation"),
  type = { "commerce_tax_number" }
)

Hierarchy

  • class \Drupal\commerce_tax\Plugin\Validation\Constraint\TaxNumberConstraint extends \Symfony\Component\Validator\Constraint

Expanded class hierarchy of TaxNumberConstraint

File

modules/tax/src/Plugin/Validation/Constraint/TaxNumberConstraint.php, line 16

Namespace

Drupal\commerce_tax\Plugin\Validation\Constraint
View source
class TaxNumberConstraint extends Constraint {
  public $verify = TRUE;
  public $allowUnverified = FALSE;
  public $invalidMessage = '%name is not in the right format.';
  public $invalidMessageWithExamples = '%name is not in the right format. @examples';
  public $verificationFailedMessage = '%name could not be verified.';

}

Members