public PathValidator::__construct(AccessAwareRouterInterface $access_aware_router, UrlMatcherInterface $access_unaware_router, AccountInterface $account, InboundPathProcessorInterface $path_processor)
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 63
Class
- PathValidator
- Provides a default path validator and access checker.
Namespace
Drupal\Core\Path
Code
1 2 3 4 5 6 | 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 ; } |
Please login to continue.