3 namespace Drupal\workspaces\Plugin\Validation\Constraint;
5 use Symfony\Component\Validator\Constraint;
8 * Validation constraint for an entity being edited in multiple workspaces.
11 * id = "EntityWorkspaceConflict",
12 * label = @Translation("Entity workspace conflict", context = "Validation"),
16 class EntityWorkspaceConflictConstraint extends Constraint {
19 * The default violation message.
23 public $message = 'The content is being edited in the %label workspace. As a result, your changes cannot be saved.';