3 namespace Drupal\media_test_source\Plugin\Validation\Constraint;
5 use Symfony\Component\Validator\Constraint;
8 * A media test constraint.
11 * id = "MediaTestConstraint",
12 * label = @Translation("Media constraint for test purposes.", context = "Validation"),
13 * type = { "entity", "string" }
16 class MediaTestConstraint extends Constraint {
19 * The default violation message.
23 public $message = 'Inappropriate text.';