class EntityWorkspaceConflictConstraint
Same name in other branches
- 9 core/modules/workspaces/src/Plugin/Validation/Constraint/EntityWorkspaceConflictConstraint.php \Drupal\workspaces\Plugin\Validation\Constraint\EntityWorkspaceConflictConstraint
- 8.9.x 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.
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
- WorkspacesHtmlEntityFormController.php in core/
modules/ workspaces/ src/ Controller/ WorkspacesHtmlEntityFormController.php
File
-
core/
modules/ workspaces/ src/ Plugin/ Validation/ Constraint/ EntityWorkspaceConflictConstraint.php, line 12
Namespace
Drupal\workspaces\Plugin\Validation\ConstraintView source
class EntityWorkspaceConflictConstraint extends SymfonyConstraint {
/**
* 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
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
EntityWorkspaceConflictConstraint::$message | public | property | The default violation message. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.