function PathValidatorInterface::isValid
Same name in other branches
- 9 core/lib/Drupal/Core/Path/PathValidatorInterface.php \Drupal\Core\Path\PathValidatorInterface::isValid()
- 8.9.x 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.
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.