3 namespace Drupal\media_entity_slideshow\Plugin\Validation\Constraint;
5 use Symfony\Component\Validator\Constraint;
8 * Check number of slideshow items.
12 * label = @Translation("Slideshow items count", context = "Validation"),
15 class ItemsCountConstraint extends Constraint {
22 public $sourceFieldName;
25 * The default violation message.
29 public $message = 'At least one slideshow item must exist.';