ConsumableConstraint
extends Constraint
in package
FinalYes
Provides a Consumable constraint.
Ensures that if a catalog item is marked consumable, no other copies can be made of it.
Attributes
- #[Constraint]
- $id: 'ConsumableConstraint'
- $label: new \Drupal\Core\StringTranslation\TranslatableMarkup('Consumable Constraint', options: ['context' => 'Validation'])
Table of Contents
Properties
- $message : string
- The message to display.
Properties
$message
The message to display.
public
string
$message
= 'This collection is marked as consumable, and therefore can only have one copy.'
The message to display during validation.