function DeletedWorkspaceConstraintValidator::__construct

Creates a new DeletedWorkspaceConstraintValidator instance.

Parameters

\Drupal\workspaces\WorkspaceAssociationInterface $workspace_association: The workspace association service.

File

core/modules/workspaces/src/Plugin/Validation/Constraint/DeletedWorkspaceConstraintValidator.php, line 29

Class

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

Namespace

Drupal\workspaces\Plugin\Validation\Constraint

Code

public function __construct(WorkspaceAssociationInterface $workspace_association) {
  $this->workspaceAssociation = $workspace_association;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.