You are here

public function UniquePathAliasConstraintValidator::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Path/Plugin/Validation/Constraint/UniquePathAliasConstraintValidator.php \Drupal\Core\Path\Plugin\Validation\Constraint\UniquePathAliasConstraintValidator::__construct()

Creates a new UniquePathAliasConstraintValidator instance.

Parameters

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

File

core/lib/Drupal/Core/Path/Plugin/Validation/Constraint/UniquePathAliasConstraintValidator.php, line 29

Class

UniquePathAliasConstraintValidator
Constraint validator for a unique path alias.

Namespace

Drupal\Core\Path\Plugin\Validation\Constraint

Code

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