You are here

class PriceModifierConstraint in Price 3.x

Same name and namespace in other branches
  1. 8 src/Plugin/Validation/Constraint/PriceModifierConstraint.php \Drupal\price\Plugin\Validation\Constraint\PriceModifierConstraint
  2. 3.0.x src/Plugin/Validation/Constraint/PriceModifierConstraint.php \Drupal\price\Plugin\Validation\Constraint\PriceModifierConstraint

PriceModifier constraint.

Plugin annotation


@Constraint(
  id = "PriceModifier",
  label = @Translation("Price Modifier", context = "Validation"),
  type = {
    "price_modified"
  }
)

Hierarchy

  • class \Drupal\price\Plugin\Validation\Constraint\PriceModifierConstraint extends \Symfony\Component\Validator\Constraint

Expanded class hierarchy of PriceModifierConstraint

File

src/Plugin/Validation/Constraint/PriceModifierConstraint.php, line 18

Namespace

Drupal\price\Plugin\Validation\Constraint
View source
class PriceModifierConstraint extends Constraint {
  public $availableModifiers = [];
  public $invalidMessage = 'The modifier %value is not valid.';
  public $notAvailableMessage = 'The modifier %value is not available.';

}

Members