function CustomAccessCheck::__construct

Constructs a CustomAccessCheck instance.

Parameters

\Drupal\Core\Utility\CallableResolver $callableResolver: The callable resolver.

\Drupal\Core\Access\AccessArgumentsResolverFactoryInterface $argumentsResolverFactory: The arguments resolver factory.

File

core/lib/Drupal/Core/Access/CustomAccessCheck.php, line 32

Class

CustomAccessCheck
Defines an access checker that allows specifying a custom method for access.

Namespace

Drupal\Core\Access

Code

public function __construct(protected CallableResolver $callableResolver, protected AccessArgumentsResolverFactoryInterface $argumentsResolverFactory) {
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.