function PermissionsHashGenerator::__construct

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Session/PermissionsHashGenerator.php \Drupal\Core\Session\PermissionsHashGenerator::__construct()
  2. 10 core/lib/Drupal/Core/Session/PermissionsHashGenerator.php \Drupal\Core\Session\PermissionsHashGenerator::__construct()
  3. 9 core/lib/Drupal/Core/Session/PermissionsHashGenerator.php \Drupal\Core\Session\PermissionsHashGenerator::__construct()
  4. 8.9.x core/lib/Drupal/Core/Session/PermissionsHashGenerator.php \Drupal\Core\Session\PermissionsHashGenerator::__construct()

Constructs a PermissionsHashGenerator object.

Parameters

\Drupal\Core\PrivateKey $privateKey: The private key service.

\Drupal\Core\Cache\CacheBackendInterface $static: The cache backend interface to use for the static cache.

\Drupal\Core\Session\AccessPolicyProcessorInterface $processor: The access policy processor.

File

core/lib/Drupal/Core/Session/PermissionsHashGenerator.php, line 26

Class

PermissionsHashGenerator
Generates and caches the permissions hash for a user.

Namespace

Drupal\Core\Session

Code

public function __construct(protected PrivateKey $privateKey, protected CacheBackendInterface $static, protected AccessPolicyProcessorInterface $processor) {
}

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