public function CustomAccessCheck::__construct in Drupal 8
Same name and namespace in other branches
- 9 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 45
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;
}