Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. AccessManager.php

function AccessManager::__construct

Constructs an AccessManager instance.

Parameters

\Drupal\Core\Routing\RouteProviderInterface $route_provider: The route provider.

\Drupal\Core\ParamConverter\ParamConverterManagerInterface $paramconverter_manager: The param converter manager.

\Drupal\Core\Access\AccessArgumentsResolverFactoryInterface $arguments_resolver_factory: The access arguments resolver.

\Drupal\Core\Session\AccountInterface $current_user: The current user.

CheckProviderInterface $check_provider: The check access provider.

File

core/lib/Drupal/Core/Access/AccessManager.php, line 71

Class

AccessManager
Attaches access check services to routes and runs them on request.

Namespace

Drupal\Core\Access

Code

public function __construct(RouteProviderInterface $route_provider, ParamConverterManagerInterface $paramconverter_manager, AccessArgumentsResolverFactoryInterface $arguments_resolver_factory, AccountInterface $current_user, CheckProviderInterface $check_provider) {
    $this->routeProvider = $route_provider;
    $this->paramConverterManager = $paramconverter_manager;
    $this->argumentsResolverFactory = $arguments_resolver_factory;
    $this->currentUser = $current_user;
    $this->checkProvider = $check_provider;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal