You are here

class DeletedWorkspaceConstraint in Drupal 8

Same name and namespace in other branches
  1. 9 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

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

Namesort descending Modifiers Type Description Overrides
DeletedWorkspaceConstraint::$message public property The default violation message.