Further modules included.
[yaffs-website] / web / modules / contrib / media / src / Plugin / Validation / Constraint / GalleryMediaBundleConstraint.php
1 <?php
2
3 namespace Drupal\media\Plugin\Validation\Constraint;
4
5 use Symfony\Component\Validator\Constraint;
6
7 /**
8  * Check that there is no Gallery type item in slideshow items.
9  *
10  * @Constraint(
11  *   id = "GalleryMediaBundle",
12  *   label = @Translation("Gallery media bundle", context = "Validation"),
13  * )
14  */
15 class GalleryMediaBundleConstraint extends Constraint {
16
17   /**
18    * Name of the source field for slideshow bundle.
19    *
20    * @var string
21    */
22   public $sourceFieldName;
23
24   /**
25    * The default violation message.
26    *
27    * @var string
28    */
29   public $message = 'Gallery cannot contain gallery type item.';
30 }