You are here

public function DeletedWorkspaceConstraintValidator::__construct in Workspace 8.2

Creates a new DeletedWorkspaceConstraintValidator instance.

Parameters

\Drupal\workspace\WorkspaceAssociationStorageInterface $workspace_association_storage: The workspace association storage.

File

src/Plugin/Validation/Constraint/DeletedWorkspaceConstraintValidator.php, line 29

Class

DeletedWorkspaceConstraintValidator
Checks if data still exists for a deleted workspace ID.

Namespace

Drupal\workspace\Plugin\Validation\Constraint

Code

public function __construct(WorkspaceAssociationStorageInterface $workspace_association_storage) {
  $this->workspaceAssociationStorage = $workspace_association_storage;
}