Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / workspaces / src / Plugin / Validation / Constraint / DeletedWorkspaceConstraint.php
diff --git a/web/core/modules/workspaces/src/Plugin/Validation/Constraint/DeletedWorkspaceConstraint.php b/web/core/modules/workspaces/src/Plugin/Validation/Constraint/DeletedWorkspaceConstraint.php
new file mode 100644 (file)
index 0000000..5608989
--- /dev/null
@@ -0,0 +1,24 @@
+<?php
+
+namespace Drupal\workspaces\Plugin\Validation\Constraint;
+
+use Symfony\Component\Validator\Constraint;
+
+/**
+ * Deleted workspace constraint.
+ *
+ * @Constraint(
+ *   id = "DeletedWorkspace",
+ *   label = @Translation("Deleted workspace", context = "Validation"),
+ * )
+ */
+class DeletedWorkspaceConstraint extends Constraint {
+
+  /**
+   * The default violation message.
+   *
+   * @var string
+   */
+  public $message = 'A workspace with this ID has been deleted but data still exists for it.';
+
+}