function AccessPolicyBase::calculatePermissions

Same name in other branches
  1. 10 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.

... See full list

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.

... See full list

File

core/lib/Drupal/Core/Session/AccessPolicyBase.php, line 20

Class

AccessPolicyBase
Base class for access policies.

Namespace

Drupal\Core\Session

Code

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.