class 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.

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Path!PathValidator.php/class/PathValidator/8.1.x