3 namespace Drupal\media_entity_twitter\Plugin\Validation\Constraint;
5 use Symfony\Component\Validator\Constraint;
8 * Checks if a value is a valid Tweet embed code/URL.
11 * id = "TweetEmbedCode",
12 * label = @Translation("Tweet embed code", context = "Validation"),
13 * type = { "link", "string", "string_long" }
16 class TweetEmbedCodeConstraint extends Constraint {
19 * The default violation message.
23 public $message = 'Not valid Tweet URL/embed code.';