protected function PathProcessor::getPathValidator in Sub-pathauto (Sub-path URL Aliases) 8
Gets the path validator.
Return value
\Drupal\Core\Path\PathValidatorInterface The path validator.
File
- src/
PathProcessor.php, line 186
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;
}