public function PathValidatorInterface::isValid in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Path/PathValidatorInterface.php \Drupal\Core\Path\PathValidatorInterface::isValid()
- 9 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);