public function UniquePathAliasConstraintValidator::__construct in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Path/Plugin/Validation/Constraint/UniquePathAliasConstraintValidator.php \Drupal\Core\Path\Plugin\Validation\Constraint\UniquePathAliasConstraintValidator::__construct()
- 9 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\ConstraintCode
public function __construct(EntityTypeManagerInterface $entity_type_manager) {
$this->entityTypeManager = $entity_type_manager;
}