function AccessPolicyInterface::calculatePermissions
Same name in other branches
- 10 core/lib/Drupal/Core/Session/AccessPolicyInterface.php \Drupal\Core\Session\AccessPolicyInterface::calculatePermissions()
Calculates the permissions for an account within a given scope.
Parameters
\Drupal\Core\Session\AccountInterface $account: The user account for which to calculate the permissions.
string $scope: The scope to calculate the permissions for.
Return value
\Drupal\Core\Session\RefinableCalculatedPermissionsInterface An object representing the permissions within the given scope.
1 method overrides AccessPolicyInterface::calculatePermissions()
- AccessPolicyBase::calculatePermissions in core/
lib/ Drupal/ Core/ Session/ AccessPolicyBase.php - Calculates the permissions for an account within a given scope.
File
-
core/
lib/ Drupal/ Core/ Session/ AccessPolicyInterface.php, line 48
Class
- AccessPolicyInterface
- Defines the access policy interface.
Namespace
Drupal\Core\SessionCode
public function calculatePermissions(AccountInterface $account, string $scope) : RefinableCalculatedPermissionsInterface;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.