public function CustomAccessCheck::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Access/CustomAccessCheck.php \Drupal\Core\Access\CustomAccessCheck::__construct()
Constructs a CustomAccessCheck instance.
Parameters
\Drupal\Core\Controller\ControllerResolverInterface $controller_resolver: The controller resolver.
\Drupal\Core\Access\AccessArgumentsResolverFactoryInterface $arguments_resolver_factory: The arguments resolver factory.
File
- core/
lib/ Drupal/ Core/ Access/ CustomAccessCheck.php, line 50 - Contains \Drupal\Core\Access\CustomAccessCheck.
Class
- CustomAccessCheck
- Defines an access checker that allows specifying a custom method for access.
Namespace
Drupal\Core\AccessCode
public function __construct(ControllerResolverInterface $controller_resolver, AccessArgumentsResolverFactoryInterface $arguments_resolver_factory) {
$this->controllerResolver = $controller_resolver;
$this->argumentsResolverFactory = $arguments_resolver_factory;
}