aeef70f531f3406ffa18a3b9aa654462884f2eb2
[yaffs-website] / Plugin / Validation / Constraint / VideoEmbedConstraint.php
1 <?php
2
3 namespace Drupal\video_embed_field\Plugin\Validation\Constraint;
4
5 use Symfony\Component\Validator\Constraint;
6
7 /**
8  * Validation constraint for the video embed field.
9  *
10  * @Constraint(
11  *   id = "VideoEmbedValidation",
12  *   label = @Translation("VideoEmbed provider constraint", context = "Validation"),
13  * )
14  */
15 class VideoEmbedConstraint extends Constraint {
16
17   /**
18    * Message shown when a video provider is not found.
19    *
20    * @var string
21    */
22   public $message = 'Could not find a video provider to handle the given URL.';
23
24 }