function ValidPathConstraintValidator::__construct

Same name in other branches
  1. 9 core/lib/Drupal/Core/Path/Plugin/Validation/Constraint/ValidPathConstraintValidator.php \Drupal\Core\Path\Plugin\Validation\Constraint\ValidPathConstraintValidator::__construct()
  2. 8.9.x core/lib/Drupal/Core/Path/Plugin/Validation/Constraint/ValidPathConstraintValidator.php \Drupal\Core\Path\Plugin\Validation\Constraint\ValidPathConstraintValidator::__construct()
  3. 10 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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.