Pull merge.
[yaffs-website] / web / core / modules / workspaces / src / Plugin / Validation / Constraint / EntityWorkspaceConflictConstraint.php
1 <?php
2
3 namespace Drupal\workspaces\Plugin\Validation\Constraint;
4
5 use Symfony\Component\Validator\Constraint;
6
7 /**
8  * Validation constraint for an entity being edited in multiple workspaces.
9  *
10  * @Constraint(
11  *   id = "EntityWorkspaceConflict",
12  *   label = @Translation("Entity workspace conflict", context = "Validation"),
13  *   type = {"entity"}
14  * )
15  */
16 class EntityWorkspaceConflictConstraint extends Constraint {
17
18   /**
19    * The default violation message.
20    *
21    * @var string
22    */
23   public $message = 'The content is being edited in the %label workspace. As a result, your changes cannot be saved.';
24
25 }