VideoEmbedConstraint.php in Video Embed Field 8
Same filename and directory in other branches
File
src/Plugin/Validation/Constraint/VideoEmbedConstraint.phpView source
<?php
namespace Drupal\video_embed_field\Plugin\Validation\Constraint;
use Symfony\Component\Validator\Constraint;
/**
* Validation constraint for the video embed field.
*
* @Constraint(
* id = "VideoEmbedValidation",
* label = @Translation("VideoEmbed provider constraint", context = "Validation"),
* )
*/
class VideoEmbedConstraint extends Constraint {
/**
* Message shown when a video provider is not found.
*
* @var string
*/
public $message = 'Could not find a video provider to handle the given URL.';
}
Classes
Name | Description |
---|---|
VideoEmbedConstraint | Validation constraint for the video embed field. |