Sets the path validator.

The path validator couldn't be injected to this class properly since it would cause circular dependency.

Parameters

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

Return value

$this

1 call to PathProcessor::setPathValidator()
PathProcessor::getPathValidator in src/PathProcessor.php
Gets the path validator.

File

src/PathProcessor.php, line 285

Class

PathProcessor
Processes the inbound path using path alias lookups.

Namespace

Drupal\subpathauto

Code

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