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