class CurrencyConstraint in Commerce Core 8.2
Currency constraint.
Plugin annotation
@Constraint(
id = "Currency",
label = @Translation("Currency", context = "Validation"),
type = { "commerce_price" }
)
Hierarchy
- class \Drupal\commerce_price\Plugin\Validation\Constraint\CurrencyConstraint extends \Symfony\Component\Validator\Constraint
Expanded class hierarchy of CurrencyConstraint
File
- modules/
price/ src/ Plugin/ Validation/ Constraint/ CurrencyConstraint.php, line 16
Namespace
Drupal\commerce_price\Plugin\Validation\ConstraintView source
class CurrencyConstraint extends Constraint {
public $availableCurrencies = [];
public $invalidMessage = 'The currency %value is not valid.';
public $notAvailableMessage = 'The currency %value is not available.';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CurrencyConstraint:: |
public | property | ||
CurrencyConstraint:: |
public | property | ||
CurrencyConstraint:: |
public | property |