class EntityWorkspaceConflictConstraint in Drupal 9
Same name and namespace in other branches
- 8 core/modules/workspaces/src/Plugin/Validation/Constraint/EntityWorkspaceConflictConstraint.php \Drupal\workspaces\Plugin\Validation\Constraint\EntityWorkspaceConflictConstraint
- 10 core/modules/workspaces/src/Plugin/Validation/Constraint/EntityWorkspaceConflictConstraint.php \Drupal\workspaces\Plugin\Validation\Constraint\EntityWorkspaceConflictConstraint
Validation constraint for an entity being edited in multiple workspaces.
Plugin annotation
@Constraint(
id = "EntityWorkspaceConflict",
label = @Translation("Entity workspace conflict", context = "Validation"),
type = {"entity"}
)
Hierarchy
- class \Drupal\workspaces\Plugin\Validation\Constraint\EntityWorkspaceConflictConstraint extends \Symfony\Component\Validator\Constraint
Expanded class hierarchy of EntityWorkspaceConflictConstraint
1 file declares its use of EntityWorkspaceConflictConstraint
- EntityOperations.php in core/
modules/ workspaces/ src/ EntityOperations.php
File
- core/
modules/ workspaces/ src/ Plugin/ Validation/ Constraint/ EntityWorkspaceConflictConstraint.php, line 16
Namespace
Drupal\workspaces\Plugin\Validation\ConstraintView source
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.';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EntityWorkspaceConflictConstraint:: |
public | property | The default violation message. |