function AccessPolicyBase::calculatePermissions
Same name in other branches
- 11.x core/lib/Drupal/Core/Session/AccessPolicyBase.php \Drupal\Core\Session\AccessPolicyBase::calculatePermissions()
Overrides AccessPolicyInterface::calculatePermissions
7 calls to AccessPolicyBase::calculatePermissions()
- AlwaysAddsAccessPolicy::calculatePermissions in core/
tests/ Drupal/ Tests/ Core/ Session/ AccessPolicyProcessorTest.php - Calculates the permissions for an account within a given scope.
- BarAccessPolicy::calculatePermissions in core/
tests/ Drupal/ Tests/ Core/ Session/ AccessPolicyProcessorTest.php - Calculates the permissions for an account within a given scope.
- BazAccessPolicy::calculatePermissions in core/
tests/ Drupal/ Tests/ Core/ Session/ AccessPolicyProcessorTest.php - Calculates the permissions for an account within a given scope.
- FooAccessPolicy::calculatePermissions in core/
tests/ Drupal/ Tests/ Core/ Session/ AccessPolicyProcessorTest.php - Calculates the permissions for an account within a given scope.
- InstallerAccessPolicy::calculatePermissions in core/
lib/ Drupal/ Core/ Installer/ InstallerAccessPolicy.php - Calculates the permissions for an account within a given scope.
7 methods override AccessPolicyBase::calculatePermissions()
- AlwaysAddsAccessPolicy::calculatePermissions in core/
tests/ Drupal/ Tests/ Core/ Session/ AccessPolicyProcessorTest.php - Calculates the permissions for an account within a given scope.
- BarAccessPolicy::calculatePermissions in core/
tests/ Drupal/ Tests/ Core/ Session/ AccessPolicyProcessorTest.php - Calculates the permissions for an account within a given scope.
- BazAccessPolicy::calculatePermissions in core/
tests/ Drupal/ Tests/ Core/ Session/ AccessPolicyProcessorTest.php - Calculates the permissions for an account within a given scope.
- FooAccessPolicy::calculatePermissions in core/
tests/ Drupal/ Tests/ Core/ Session/ AccessPolicyProcessorTest.php - Calculates the permissions for an account within a given scope.
- InstallerAccessPolicy::calculatePermissions in core/
lib/ Drupal/ Core/ Installer/ InstallerAccessPolicy.php - Calculates the permissions for an account within a given scope.
File
-
core/
lib/ Drupal/ Core/ Session/ AccessPolicyBase.php, line 20
Class
- AccessPolicyBase
- Base class for access policies.
Namespace
Drupal\Core\SessionCode
public function calculatePermissions(AccountInterface $account, string $scope) : RefinableCalculatedPermissionsInterface {
return (new RefinableCalculatedPermissions())->addCacheContexts($this->getPersistentCacheContexts());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.