Provides a default path validator and access checker.
Hierarchy
- class \Drupal\Core\Path\PathValidator implements PathValidatorInterface
File
- core/lib/Drupal/Core/Path/PathValidator.php, line 21
Namespace
Drupal\Core\Path
Members
Name | Modifiers | Type | Description |
---|---|---|---|
PathValidator::$accessAwareRouter | protected | property | The access aware router. |
PathValidator::$accessUnawareRouter | protected | property | A router implementation which does not check access. |
PathValidator::$account | protected | property | The current user. |
PathValidator::$pathProcessor | protected | property | The path processor. |
PathValidator::getPathAttributes | protected | function | Gets the matched attributes for a given path. |
PathValidator::getUrl | protected | function | Helper for getUrlIfValid() and getUrlIfValidWithoutAccessCheck(). |
PathValidator::getUrlIfValid | public | function | Returns a URL object, if the path is valid and accessible. Overrides PathValidatorInterface::getUrlIfValid |
PathValidator::getUrlIfValidWithoutAccessCheck | public | function | Returns a URL object, if the path is valid. Overrides PathValidatorInterface::getUrlIfValidWithoutAccessCheck |
PathValidator::isValid | public | function | Checks if the URL path is valid and accessible by the current user. Overrides PathValidatorInterface::isValid |
PathValidator::__construct | public | function | Creates a new PathValidator. |
Please login to continue.