Change record status: 
Project: 
Introduced in branch: 
8.x
Description: 

The drupal_valid_path() method in includes/path.inc has been moved to a PathValidator service.

D7

$is_valid = drupal_valid_path($path);

D8

$is_valid = \Drupal::service('path.validator')->isValid($path);
Impacts: 
Module developers
Updates Done (doc team, etc.)
Online documentation: 
Not done
Theming guide: 
Not done
Module developer documentation: 
Not done
Examples project: 
Not done
Coder Review: 
Not done
Coder Upgrade: 
Not done
Other: 
Other updates done

Comments

Liam Morland’s picture

Is some use cases, drupal_valid_path() would be replaced with \Drupal\Core\Url::access().