You are here

public function PathValidatorInterface::isValid in Drupal 8

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