function Drupal::pathValidator
Same name in other branches
- 8.9.x core/lib/Drupal.php \Drupal::pathValidator()
- 10 core/lib/Drupal.php \Drupal::pathValidator()
- 11.x core/lib/Drupal.php \Drupal::pathValidator()
Returns the path validator.
Return value
\Drupal\Core\Path\PathValidatorInterface
2 calls to Drupal::pathValidator()
- aggregator_help in core/
modules/ aggregator/ aggregator.module - Implements hook_help().
- DrupalTest::testPathValidator in core/
tests/ Drupal/ Tests/ Core/ DrupalTest.php - Tests the pathValidator() method.
File
-
core/
lib/ Drupal.php, line 701
Class
- Drupal
- Static Service Container wrapper.
Code
public static function pathValidator() {
return static::getContainer()->get('path.validator');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.