Tests if path is valid.

This method will call all of the path processors (including this one). Sufficient protection against recursive calls is needed.

Paramètres

string $path: The path to be checked.

Return value

bool Whether path is valid or not.

1 call to PathProcessor::isValidPath()
PathProcessor::processInbound dans src/PathProcessor.php

Fichier

src/PathProcessor.php, line 252

Classe

PathProcessor
Processes the inbound path using path alias lookups.

Namespace

Drupal\subpathauto

Code

protected function isValidPath($path) {
    $this->recursiveCall = TRUE;
    $is_valid = (bool) $this->getPathValidator()
        ->getUrlIfValidWithoutAccessCheck($path);
    $this->recursiveCall = FALSE;
    return $is_valid;
}