public static function Drupal::pathValidator in Drupal 8
Same name and namespace in other branches
- 9 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 735 - Contains \Drupal.
Class
- Drupal
- Static Service Container wrapper.
Code
public static function pathValidator() {
return static::getContainer()
->get('path.validator');
}