3 namespace Drupal\entityqueue\Plugin\Validation\Constraint;
5 use Symfony\Component\Validator\Constraint;
8 * Supports validating entity subqueue sizes.
12 * label = @Translation("Queue size", context = "Validation"),
13 * type = "entity:entity_subqueue"
16 class QueueSizeConstraint extends Constraint {
19 * Message shown when the minimum number of queue items is not reached.
23 public $messageMinSize = 'This queue can not hold less than %min_size items.';
26 * Message shown when the maximum number of queue items is exceed.
30 public $messageMaxSize = 'This queue can not hold more than %max_size items.';