3 namespace Drupal\media\Plugin\Validation\Constraint;
5 use Symfony\Component\Validator\Constraint;
8 * Check that there is no Gallery type item in slideshow items.
11 * id = "GalleryMediaBundle",
12 * label = @Translation("Gallery media bundle", context = "Validation"),
15 class GalleryMediaBundleConstraint extends Constraint {
18 * Name of the source field for slideshow bundle.
22 public $sourceFieldName;
25 * The default violation message.
29 public $message = 'Gallery cannot contain gallery type item.';