Gets the path validator.

Return value

\Drupal\Core\Path\PathValidatorInterface The path validator.

Fichier

src/PathProcessor.php, line 266

Classe

PathProcessor
Processes the inbound path using path alias lookups.

Namespace

Drupal\subpathauto

Code

protected function getPathValidator() {
    if (!$this->pathValidator) {
        $this->setPathValidator(\Drupal::service('path.validator'));
    }
    return $this->pathValidator;
}