Pull merge.
[yaffs-website] / web / core / lib / Drupal / Core / Validation / Plugin / Validation / Constraint / AllowedValuesConstraint.php
1 <?php
2
3 namespace Drupal\Core\Validation\Plugin\Validation\Constraint;
4
5 use Symfony\Component\Validator\Constraints\Choice;
6
7 /**
8  * Checks for the value being allowed.
9  *
10  * @Constraint(
11  *   id = "AllowedValues",
12  *   label = @Translation("Allowed values", context = "Validation")
13  * )
14  *
15  * @see \Drupal\Core\TypedData\OptionsProviderInterface
16  */
17 class AllowedValuesConstraint extends Choice {
18
19   public $minMessage = 'You must select at least %limit choice.|You must select at least %limit choices.';
20   public $maxMessage = 'You must select at most %limit choice.|You must select at most %limit choices.';
21
22 }