Updated all the contrib modules to their latest versions.
[yaffs-website] / web / modules / contrib / media_entity_instagram / src / Plugin / Validation / Constraint / InstagramEmbedCodeConstraint.php
1 <?php
2
3 namespace Drupal\media_entity_instagram\Plugin\Validation\Constraint;
4
5 use Symfony\Component\Validator\Constraint;
6
7 /**
8  * Check if a value is a valid Instagram embed code/URL.
9  *
10  * @Constraint(
11  *   id = "InstagramEmbedCode",
12  *   label = @Translation("Instagram embed code", context = "Validation"),
13  *   type = { "link", "string", "string_long" }
14  * )
15  */
16 class InstagramEmbedCodeConstraint extends Constraint {
17
18   /**
19    * The default violation message.
20    *
21    * @var string
22    */
23   public $message = 'Not valid Instagram URL/Embed code.';
24
25 }