class DeletedWorkspaceConstraint

Same name in other branches
  1. 8.9.x core/modules/workspaces/src/Plugin/Validation/Constraint/DeletedWorkspaceConstraint.php \Drupal\workspaces\Plugin\Validation\Constraint\DeletedWorkspaceConstraint
  2. 10 core/modules/workspaces/src/Plugin/Validation/Constraint/DeletedWorkspaceConstraint.php \Drupal\workspaces\Plugin\Validation\Constraint\DeletedWorkspaceConstraint
  3. 11.x 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

Expanded class hierarchy of DeletedWorkspaceConstraint

File

core/modules/workspaces/src/Plugin/Validation/Constraint/DeletedWorkspaceConstraint.php, line 15

Namespace

Drupal\workspaces\Plugin\Validation\Constraint
View 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

Title Sort descending Modifiers Object type Summary
DeletedWorkspaceConstraint::$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.