You are here

public function ValidPathConstraintValidator::__construct in Drupal 8

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

Creates a new ValidPathConstraintValidator instance.

Parameters

\Drupal\Core\Path\PathValidatorInterface $path_validator: The path validator.

File

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

Class

ValidPathConstraintValidator
Constraint validator for validating system paths.

Namespace

Drupal\Core\Path\Plugin\Validation\Constraint

Code

public function __construct(PathValidatorInterface $path_validator) {
  $this->pathValidator = $path_validator;
}