Sets the path validator.

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

Paramètres

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

Return value

$this

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

Fichier

src/PathProcessor.php, line 285

Classe

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;
}