You are here

public function PathProcessor::setPathValidator in Sub-pathauto (Sub-path URL Aliases) 8

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 205

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