Gets the path validator.
Return value
\Drupal\Core\Path\PathValidatorInterface The path validator.
File
-
src/
PathProcessor.php, line 266
Class
- PathProcessor
- Processes the inbound path using path alias lookups.
Namespace
Drupal\subpathautoCode
protected function getPathValidator() {
if (!$this->pathValidator) {
$this->setPathValidator(\Drupal::service('path.validator'));
}
return $this->pathValidator;
}