class QueueSizeConstraint in Entityqueue 8
Supports validating entity subqueue sizes.
Plugin annotation
@Constraint(
id = "QueueSize",
label = @Translation("Queue size", context = "Validation"),
type = "entity:entity_subqueue"
)
Hierarchy
- class \Drupal\entityqueue\Plugin\Validation\Constraint\QueueSizeConstraint extends \Symfony\Component\Validator\Constraint
Expanded class hierarchy of QueueSizeConstraint
File
- src/
Plugin/ Validation/ Constraint/ QueueSizeConstraint.php, line 16
Namespace
Drupal\entityqueue\Plugin\Validation\ConstraintView source
class QueueSizeConstraint extends Constraint {
/**
* Message shown when the minimum number of queue items is not reached.
*
* @var string
*/
public $messageMinSize = 'This queue can not hold less than %min_size items.';
/**
* Message shown when the maximum number of queue items is exceed.
*
* @var string
*/
public $messageMaxSize = 'This queue can not hold more than %max_size items.';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
QueueSizeConstraint:: |
public | property | Message shown when the maximum number of queue items is exceed. | |
QueueSizeConstraint:: |
public | property | Message shown when the minimum number of queue items is not reached. |