Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. AccessPolicyInterface.php

function 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\Session

Code

public function calculatePermissions(AccountInterface $account, string $scope) : RefinableCalculatedPermissionsInterface;

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal