You are here

public function ChainGroupPermissionCalculator::__construct in Group 2.0.x

Same name and namespace in other branches
  1. 8 src/Access/ChainGroupPermissionCalculator.php \Drupal\group\Access\ChainGroupPermissionCalculator::__construct()

Constructs a ChainGroupPermissionCalculator object.

Parameters

\Drupal\variationcache\Cache\VariationCacheInterface $cache: The variation cache to use as a persistent cache.

\Drupal\variationcache\Cache\VariationCacheInterface $static: The variation cache to use as a static cache.

\Drupal\Core\Cache\CacheBackendInterface $regular_static: The regular cache backend to use as a static cache.

\Drupal\Core\Session\AccountSwitcherInterface $account_switcher: The account switcher service.

File

src/Access/ChainGroupPermissionCalculator.php, line 63

Class

ChainGroupPermissionCalculator
Collects group permissions for an account.

Namespace

Drupal\group\Access

Code

public function __construct(VariationCacheInterface $cache, VariationCacheInterface $static, CacheBackendInterface $regular_static, AccountSwitcherInterface $account_switcher) {
  $this->cache = $cache;
  $this->static = $static;
  $this->regularStatic = $regular_static;
  $this->accountSwitcher = $account_switcher;
}