PathValidator

Provides a default path validator and access checker.

Hierarchy

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.
doc_Drupal
2016-10-29 09:33:34
Comments
Leave a Comment

Please login to continue.