function PathValidatorInterface::isValid

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

Code

public function isValid($path);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.