function PermissionsHashGenerator::__construct
Same name in other branches
- 9 core/lib/Drupal/Core/Session/PermissionsHashGenerator.php \Drupal\Core\Session\PermissionsHashGenerator::__construct()
- 10 core/lib/Drupal/Core/Session/PermissionsHashGenerator.php \Drupal\Core\Session\PermissionsHashGenerator::__construct()
- 11.x core/lib/Drupal/Core/Session/PermissionsHashGenerator.php \Drupal\Core\Session\PermissionsHashGenerator::__construct()
Constructs a PermissionsHashGenerator object.
Parameters
\Drupal\Core\PrivateKey $private_key: The private key service.
\Drupal\Core\Cache\CacheBackendInterface $cache: The cache backend interface to use for the persistent cache.
\Drupal\Core\Cache\CacheBackendInterface $static: The cache backend interface to use for the static cache.
File
-
core/
lib/ Drupal/ Core/ Session/ PermissionsHashGenerator.php, line 46
Class
- PermissionsHashGenerator
- Generates and caches the permissions hash for a user.
Namespace
Drupal\Core\SessionCode
public function __construct(PrivateKey $private_key, CacheBackendInterface $cache, CacheBackendInterface $static) {
$this->privateKey = $private_key;
$this->cache = $cache;
$this->static = $static;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.