EntityWorkspaceConflictConstraint.php in Drupal 9
Same filename and directory in other branches
File
core/modules/workspaces/src/Plugin/Validation/Constraint/EntityWorkspaceConflictConstraint.phpView source
<?php
namespace Drupal\workspaces\Plugin\Validation\Constraint;
use Symfony\Component\Validator\Constraint;
/**
* Validation constraint for an entity being edited in multiple workspaces.
*
* @Constraint(
* id = "EntityWorkspaceConflict",
* label = @Translation("Entity workspace conflict", context = "Validation"),
* type = {"entity"}
* )
*/
class EntityWorkspaceConflictConstraint extends Constraint {
/**
* The default violation message.
*
* @var string
*/
public $message = 'The content is being edited in the %label workspace. As a result, your changes cannot be saved.';
}
Classes
Name | Description |
---|---|
EntityWorkspaceConflictConstraint | Validation constraint for an entity being edited in multiple workspaces. |