You are here

public function EntityWorkspaceConflictConstraintValidator::__construct in Workspace 8.2

Constructs an EntityUntranslatableFieldsConstraintValidator object.

Parameters

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

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

File

src/Plugin/Validation/Constraint/EntityWorkspaceConflictConstraintValidator.php, line 39

Class

EntityWorkspaceConflictConstraintValidator
Validates the EntityWorkspaceConflict constraint.

Namespace

Drupal\workspace\Plugin\Validation\Constraint

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, WorkspaceManagerInterface $workspace_manager) {
  $this->entityTypeManager = $entity_type_manager;
  $this->workspaceManager = $workspace_manager;
}