protected function PathProcessor::isValidPath in Sub-pathauto (Sub-path URL Aliases) 8
Tests if path is valid.
This method will call all of the path processors (including this one). Sufficient protection against recursive calls is needed.
Parameters
string $path: The path to be checked.
Return value
bool Whether path is valid or not.
1 call to PathProcessor::isValidPath()
- PathProcessor::processInbound in src/
PathProcessor.php - Processes the inbound path.
File
- src/
PathProcessor.php, line 172
Class
- PathProcessor
- Processes the inbound path using path alias lookups.
Namespace
Drupal\subpathautoCode
protected function isValidPath($path) {
$this->recursiveCall = TRUE;
$is_valid = (bool) $this
->getPathValidator()
->getUrlIfValidWithoutAccessCheck($path);
$this->recursiveCall = FALSE;
return $is_valid;
}