Pathologic was missing because of a .git folder inside.
[yaffs-website] / web / modules / contrib / entityqueue / src / Plugin / Validation / Constraint / QueueSizeConstraint.php
1 <?php
2
3 namespace Drupal\entityqueue\Plugin\Validation\Constraint;
4
5 use Symfony\Component\Validator\Constraint;
6
7 /**
8  * Supports validating entity subqueue sizes.
9  *
10  * @Constraint(
11  *   id = "QueueSize",
12  *   label = @Translation("Queue size", context = "Validation"),
13  *   type = "entity:entity_subqueue"
14  * )
15  */
16 class QueueSizeConstraint extends Constraint {
17
18   /**
19    * Message shown when the minimum number of queue items is not reached.
20    *
21    * @var string
22    */
23   public $messageMinSize = 'This queue can not hold less than %min_size items.';
24
25   /**
26    * Message shown when the maximum number of queue items is exceed.
27    *
28    * @var string
29    */
30   public $messageMaxSize = 'This queue can not hold more than %max_size items.';
31
32 }