You are here

public function EntityWorkspaceConflictConstraintValidator::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/workspaces/src/Plugin/Validation/Constraint/EntityWorkspaceConflictConstraintValidator.php \Drupal\workspaces\Plugin\Validation\Constraint\EntityWorkspaceConflictConstraintValidator::__construct()

Constructs an EntityUntranslatableFieldsConstraintValidator object.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager service.

\Drupal\workspaces\WorkspaceManagerInterface $workspace_manager: The workspace manager service.

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

\Drupal\workspaces\WorkspaceRepositoryInterface $workspace_repository: The Workspace repository service.

File

core/modules/workspaces/src/Plugin/Validation/Constraint/EntityWorkspaceConflictConstraintValidator.php, line 59

Class

EntityWorkspaceConflictConstraintValidator
Validates the EntityWorkspaceConflict constraint.

Namespace

Drupal\workspaces\Plugin\Validation\Constraint

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, WorkspaceManagerInterface $workspace_manager, WorkspaceAssociationInterface $workspace_association, WorkspaceRepositoryInterface $workspace_repository) {
  $this->entityTypeManager = $entity_type_manager;
  $this->workspaceManager = $workspace_manager;
  $this->workspaceAssociation = $workspace_association;
  $this->workspaceRepository = $workspace_repository;
}