Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / media / tests / modules / media_test_source / src / Plugin / Validation / Constraint / MediaTestConstraint.php
diff --git a/web/core/modules/media/tests/modules/media_test_source/src/Plugin/Validation/Constraint/MediaTestConstraint.php b/web/core/modules/media/tests/modules/media_test_source/src/Plugin/Validation/Constraint/MediaTestConstraint.php
new file mode 100644 (file)
index 0000000..3d466b3
--- /dev/null
@@ -0,0 +1,25 @@
+<?php
+
+namespace Drupal\media_test_source\Plugin\Validation\Constraint;
+
+use Symfony\Component\Validator\Constraint;
+
+/**
+ * A media test constraint.
+ *
+ * @Constraint(
+ *   id = "MediaTestConstraint",
+ *   label = @Translation("Media constraint for test purposes.", context = "Validation"),
+ *   type = { "entity", "string" }
+ * )
+ */
+class MediaTestConstraint extends Constraint {
+
+  /**
+   * The default violation message.
+   *
+   * @var string
+   */
+  public $message = 'Inappropriate text.';
+
+}