function PathValidatorInterface::isValid
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Path/PathValidatorInterface.php \Drupal\Core\Path\PathValidatorInterface::isValid()
- 10 core/lib/Drupal/Core/Path/PathValidatorInterface.php \Drupal\Core\Path\PathValidatorInterface::isValid()
- 11.x core/lib/Drupal/Core/Path/PathValidatorInterface.php \Drupal\Core\Path\PathValidatorInterface::isValid()
Checks if the URL path is valid and accessible by the current user.
Parameters
string $path: The path to check.
Return value
bool TRUE if the path is valid.
1 method overrides PathValidatorInterface::isValid()
- PathValidator::isValid in core/
lib/ Drupal/ Core/ Path/ PathValidator.php - Checks if the URL path is valid and accessible by the current user.
File
-
core/
lib/ Drupal/ Core/ Path/ PathValidatorInterface.php, line 44
Class
- PathValidatorInterface
- Provides an interface for URL path validators.
Namespace
Drupal\Core\PathCode
public function isValid($path);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.