class DeletedWorkspaceConstraint in Drupal 10
Same name and namespace in other branches
- 8 core/modules/workspaces/src/Plugin/Validation/Constraint/DeletedWorkspaceConstraint.php \Drupal\workspaces\Plugin\Validation\Constraint\DeletedWorkspaceConstraint
 - 9 core/modules/workspaces/src/Plugin/Validation/Constraint/DeletedWorkspaceConstraint.php \Drupal\workspaces\Plugin\Validation\Constraint\DeletedWorkspaceConstraint
 
Deleted workspace constraint.
Plugin annotation
@Constraint(
  id = "DeletedWorkspace",
  label = @Translation("Deleted workspace", context = "Validation"),
)
  Hierarchy
- class \Drupal\workspaces\Plugin\Validation\Constraint\DeletedWorkspaceConstraint extends \Symfony\Component\Validator\Constraint
 
Expanded class hierarchy of DeletedWorkspaceConstraint
File
- core/
modules/ workspaces/ src/ Plugin/ Validation/ Constraint/ DeletedWorkspaceConstraint.php, line 15  
Namespace
Drupal\workspaces\Plugin\Validation\ConstraintView source
class DeletedWorkspaceConstraint extends Constraint {
  /**
   * The default violation message.
   *
   * @var string
   */
  public $message = 'A workspace with this ID has been deleted but data still exists for it.';
}Members
| 
            Name | 
                  Modifiers | Type | Description | Overrides | 
|---|---|---|---|---|
| 
            DeletedWorkspaceConstraint:: | 
                  public | property | The default violation message. |