public function PathValidator::__construct in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Path/PathValidator.php \Drupal\Core\Path\PathValidator::__construct()
Creates a new PathValidator.
Parameters
\Drupal\Core\Routing\AccessAwareRouterInterface $access_aware_router: The access aware router.
\Symfony\Component\Routing\Matcher\UrlMatcherInterface $access_unaware_router: A router implementation which does not check access.
\Drupal\Core\Session\AccountInterface $account: The current user.
\Drupal\Core\PathProcessor\InboundPathProcessorInterface $path_processor: The path processor;
File
- core/
lib/ Drupal/ Core/ Path/ PathValidator.php, line 64
Class
- PathValidator
- Provides a default path validator and access checker.
Namespace
Drupal\Core\PathCode
public function __construct(AccessAwareRouterInterface $access_aware_router, UrlMatcherInterface $access_unaware_router, AccountInterface $account, InboundPathProcessorInterface $path_processor) {
$this->accessAwareRouter = $access_aware_router;
$this->accessUnawareRouter = $access_unaware_router;
$this->account = $account;
$this->pathProcessor = $path_processor;
}